示例#1
0
    private IEnumerator ApplySpeedBuff(TemplateMovement defaultSpeed, TemplateMovement speedBuffSpeed, float duration)
    {
        moveInfo = speedBuffSpeed;
        yield return(new WaitForSeconds(duration));

        moveInfo = defaultSpeed;
    }
示例#2
0
 public void ActivateSpeedBuff(TemplateMovement defaultSpeed, TemplateMovement speedBuffSpeed, float duration)
 {
     StartCoroutine(ApplySpeedBuff(defaultSpeed, speedBuffSpeed, duration));
 }