void Update() { if (Input.GetButtonDown(appendPlayerSuffix("Jump"))) { Debug.Log(appendPlayerSuffix("Jump")); dwarf.Jump(); } if (Input.GetAxis(appendPlayerSuffix("Attack")) == 1) { Debug.Log(appendPlayerSuffix("Attack")); dwarf.Attack(); } }
void Update() { dwarf.Jump(); }