protected float m_DashCooldownTimer; //Timer to decide when to reenable the dash void Awake() { m_Input = GetComponent <PlayerInput>(); m_CharCtrl = GetComponent <CharacterController>(); m_Animator = GetComponent <Animator>(); s_Instance = this; m_IsDashing = false; m_IsDashAvialable = true; cam = Camera.main; }
// Use this for initialization void Start() { player = gameObject.GetComponent <PlayerControllerNew> (); }