Fixed indicator and CooldownUI

This commit is contained in:
Evan Nydahl
2022-01-31 14:07:23 -06:00
parent 72e33adcbe
commit 09ea1fe031
12 changed files with 480 additions and 427 deletions

View File

@@ -5,6 +5,7 @@ using UnityEngine;
public class Dash : NetworkBehaviour{
private CoolDown driver;
public Vector3 moveDirection;
public const float maxDashTime = 1.0f;
@@ -19,6 +20,7 @@ public class Dash : NetworkBehaviour{
PlayerMovement pMove;
void Start(){
driver = GameObject.Find("Canvas").GetComponent<CoolDown>();
characterController = this.gameObject.GetComponent<CharacterController>();
pMove = GetComponent<PlayerMovement>();
}