void ReleaseDesignerOutlets() { if (PlayerOneView != null) { PlayerOneView.Dispose (); PlayerOneView = null; } if (PlayerTwoView != null) { PlayerTwoView.Dispose (); PlayerTwoView = null; } if (StartGameButton != null) { StartGameButton.Dispose (); StartGameButton = null; } }
private void Start() { if (playerOne == null) { playerOne = FindObjectOfType <PlayerOneView>(); } if (playerTwo == null) { playerTwo = FindObjectOfType <PlayerTwoView>(); } if (playerThree == null) { playerThree = FindObjectOfType <PlayerThreeView>(); } if (playerFour == null) { playerFour = FindObjectOfType <PlayerFourView>(); } }