public void MoveToTargetRate(float startRate, float targetRate, bool ignoreProcess = false) { if (!_parallelCor.Finished) { _parallelCor.Clear(); } _UpdateBar(startRate); _parallelCor.Add(_MoveToTargetRate(startRate, targetRate, ignoreProcess)); }
public void SetData(CharacterData data, int pos) { gameObject.SetActive(true); _data = data; _pos = pos; _oriPosition = _root.position; ChangeHpSliderValue(); ChangeMpSliderValue(); if (_parallelCor == null) { _parallelCor = new ParallelCoroutines(); } _parallelCor.Clear(); StartCoroutine(_parallelCor.Execute()); }