public void MoveToTargetRate(float startRate, float targetRate, bool ignoreProcess = false) { if (!_parallelCor.Finished) { _parallelCor.Clear(); } _UpdateBar(startRate); _parallelCor.Add(_MoveToTargetRate(startRate, targetRate, ignoreProcess)); }
protected virtual void _CheckAlive() { if (!_data.IsAlive) { _parallelCor.Add(_DestroyView(1f)); } }
public IEnumerator PlaySkillAni(Transform target, int duration = 0) { if (Ballistic) { yield break; } _playFinished = false; _duration = duration; LocateTo(target); if (_isOverTime) { if (!_parallelCor.Running) { StartCoroutine(_parallelCor.Execute()); } _parallelCor.Add(_WateToFinish()); } else { while (!_playFinished) { yield return(null); } } }
private void Start() { _parallelCor.Add(_Main()); StartCoroutine(_parallelCor.Execute()); DontDestroyOnLoad(gameObject); }