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(); }
public void HideInstantly() { mover.StopMoving(); visibility.HideInstantly(); objectVisibility.Hide(); state = State.Inactive; }
private void Start() { ResizeMarkerToFitCamera(); visibility.HideInstantly(); }