コード例 #1
0
    public void MoveToTargetRate(float startRate, float targetRate, bool ignoreProcess = false)
    {
        if (!_parallelCor.Finished)
        {
            _parallelCor.Clear();
        }

        _UpdateBar(startRate);
        _parallelCor.Add(_MoveToTargetRate(startRate, targetRate, ignoreProcess));
    }
コード例 #2
0
 protected virtual void _CheckAlive()
 {
     if (!_data.IsAlive)
     {
         _parallelCor.Add(_DestroyView(1f));
     }
 }
コード例 #3
0
    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);
            }
        }
    }
コード例 #4
0
 private void Start()
 {
     _parallelCor.Add(_Main());
     StartCoroutine(_parallelCor.Execute());
     DontDestroyOnLoad(gameObject);
 }