public override void UpDate() { if (chargeTime < MaxTime) { chargeTime += Time.timeScale / Time.deltaTime; } else { this.chargeTime = 0.0f; Person_ctrl.SetActState(0); Person_ctrl.GetNowActState().Start(); } }
public override void handleInput(object sender, InputEventArgs e) { input = e.input; switch (input) { case "j": if (chargeTime > MaxTime - 0.1f) { Person_ctrl.GetActState(1).Start(); } break; case "i": if (chargeTime > MaxTime - 0.8f) { Person_ctrl.SetActState(2); Person_ctrl.GetNowActState().Start(); } break; } }