Obi Official Forum

Full Version: warning CS00108
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
"Assets\Obi\Scripts\Actors\ObiCloth.cs(78,14): warning CS0108: 'ObiCloth.Awake()' hides inherited member 'ObiClothBase.Awake()'. Use the new keyword if hiding was intended." is printed. Do I have to do something?
(07-02-2019, 01:02 PM)Richard Wrote: [ -> ]"Assets\Obi\Scripts\Actors\ObiCloth.cs(78,14): warning CS0108: 'ObiCloth.Awake()' hides inherited member 'ObiClothBase.Awake()'. Use the new keyword if hiding was intended." is printed. Do I have to do something?

Oops! thanks for finding this Sonrisa

It will not affect behavior in any way so you can ignore it. However, fixing it is easy: go to ObiClothBase.cs and declare the Awake() method (line 130) as virtual:
Code:
public virtual void Awake()

Then, in ObiCloth.cs (line 78) declare it as override:
Code:
public override void Awake()