Esempio n. 1
0
    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;
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     player = gameObject.GetComponent <PlayerControllerNew> ();
 }