//Checks if the player has won private void DidPlayerWin() { if (power >= 1 && !playerHasWon) { gafMovie.play(); playerHasWon = true; WinGame(); } }
void Update() { if (Input.GetKey("up")) { idle.SetActive(true); bite.SetActive(false); clip.play(); // bite.transform.position = idle.transform.position; // clip.setSequence("your_sequence_name", true/*if you want to start it immediatelly*/); } if (Input.GetKey("down")) { idle.SetActive(false); bite.transform.position = idle.transform.position; bite.SetActive(true); clip2.play(); // clip.setSequence("your_sequence_name", true/*if you want to start it immediatelly*/); } }