void Start() { manager = GameObject.Find("GameManager").GetComponent <GameManager> (); if (tag == PLAYER1_TAG) { knifeFeeback = GameObject.Find("Blue Knife").GetComponent <KnifeFeedback> (); playerWin = GameObject.Find("Player 1 Wins").GetComponent <PlayerWins> (); } else { knifeFeeback = GameObject.Find("Red Knife").GetComponent <KnifeFeedback> (); playerWin = GameObject.Find("Player 2 Wins").GetComponent <PlayerWins> (); } sounds = GameObject.Find("Sounds").GetComponent <Sounds> (); selfCollider = GetComponent <CircleCollider2D> (); playerAnimation = GetComponent <PlayerAnimation> (); velUnit = manager.velUnit; cooldownTimer = manager.postMurderCooldown; placeInScreen(); winDanceMove = false; winDanceMoveTimer1 = 1.5f; winDanceMoveTimer2 = 4.0f; dancingAsWinner = false; playedWinningDrums = false; }
public void ResetGame() { PlayerWins.Clear(); this.GameOver = false; }
void Start() { instance = this; }