void Start()
    {
        //Instantiate (loadingPlayerPrefab);
        //loadingPlayer = loadingPlayerPrefab.GetComponent<LoadingPlayer>();
        loadingPlayer = FindObjectOfType<LoadingPlayer>();
        cantLaunchGameUI.SetActive (true);
        canLaunchGameUI.SetActive (false);

        PlayerPrefs.SetInt ("Player 1", 0);
        PlayerPrefs.SetInt ("Player 2", 0);
        PlayerPrefs.SetInt ("Player 3", 0);
        PlayerPrefs.SetInt ("Player 4", 0);
    }
示例#2
0
 void Awake()
 {
     loadingPlayer = FindObjectOfType<LoadingPlayer>();
     loadingPlayer.ActivePlayer ();
 }