private void Start()
 {
     shieldVisibility.HideInstantly();
     autoKillTween = DOVirtual.DelayedCall(lifeSpan, Deactivate)
                     .SetAutoKill(false)
                     .SetRecyclable(true)
                     .Pause();
     shieldTween = shieldBall.DORotate(new Vector3(0, 0, 360), rotateDuration, RotateMode.FastBeyond360)
                   .SetAutoKill(false)
                   .SetRecyclable(true)
                   .SetLoops(-1)
                   .SetEase(Ease.Linear)
                   .Pause();
 }
Пример #2
0
 public void HideInstantly()
 {
     mover.StopMoving();
     visibility.HideInstantly();
     objectVisibility.Hide();
     state = State.Inactive;
 }
Пример #3
0
 private void Start()
 {
     ResizeMarkerToFitCamera();
     visibility.HideInstantly();
 }