Exemplo n.º 1
0
 void Update()
 {
     // Put here because when controlled by joystick, player skill panel is never active
     if (CharacterInput.GetAxisNeg("SkillX"))
     {
         GameManager.Instance.LocalPlayer.GetComponent <PlayerSkill>().StartSkill1();
     }
     if (CharacterInput.GetAxisPos("SkillX"))
     {
         GameManager.Instance.LocalPlayer.GetComponent <PlayerSkill>().StartSkill2();
     }
 }