private void OperatorHeightTweener(TweenHeight tweener, bool isFadeIn) { if (tweener == null) { return; } tweener.eventReceiver = null; tweener.callWhenFinished = ""; tweener.Reset(); if (isFadeIn) { tweener.from = 20; tweener.to = 100; } else { tweener.from = 100; tweener.to = 20; tweener.eventReceiver = gameObject; tweener.callWhenFinished = "OnFadeOutTweenerFinish"; } tweener.duration = 0.5f; tweener.Play(); }