Just got back to check it. I can't get it work. It says:
error CS1061: Type `UnityEngine.SpriteRenderer' does not contain a definition for `Fade' and no extension method `Fade' of type `UnityEngine.SpriteRenderer' could be found (are you missing a using directive or an assembly reference?)
What am I missing?
On a side note. This whole thing of calling a function from another script in Unity is ridiculous. In the previous engine I worked with it was simple. I could place it anywhere in the script, this.myfunction();
Comments
AC.KickStarter.mainCamera.FadeOut (fadeTime);
AC.KickStarter.object.FadeIn (fadeTime); ?
mySpriteFader.Fade (FadeType.FadeIn, 0.2f);
mySpriteFader.Fade (FadeType.FadeOut, 0.2f);
error CS1061: Type `UnityEngine.SpriteRenderer' does not contain a definition for `Fade' and no extension method `Fade' of type `UnityEngine.SpriteRenderer' could be found (are you missing a using directive or an assembly reference?)
What am I missing?
On a side note. This whole thing of calling a function from another script in Unity is ridiculous.
In the previous engine I worked with it was simple. I could place it anywhere in the script, this.myfunction();
and calling like this:
mySpriteFader.Fade (FadeType.FadeOut, 0.2f);
Now it says:
error CS0117: `AC.FadeType' does not contain a definition for `FadeOut'
FadeType.fadeOut