// Update is called once per frame void Update() { if (state != STATE.WAITING) // can`t move when waiting // get commands from player { cmdHolder.GiveAllCommands(); // get all skills updated: cd and time UpdateSkills(); // handle move and skill commands Move(); Skill(); Item(); } }