public void FadeOut(float time, Action callback) { if (NowState != State.None) { return; } FadeOutCulc.SetEndCount(time); FadeOutCulc.SetStartValue(1f); FadeOutCulc.SetEndValue(0f); AnimationTime = time; PassTime = 0f; NowState = State.FadeOut; EndCallback = callback; gameObject.SetActive(true); }
override public void Initialize() { AlphaCulc.SetEndCount(1f); AlphaCulc.SetStartValue(0f); AlphaCulc.SetEndValue(255f); }