Exemplo n.º 1
0
    private clientStatuses clientSyncPosition   = (clientStatuses)0;            //keeps track of position in client sync routine


    void Awake()
    {
        //obtain unique ID for device
        deviceID            = SystemInfo.deviceUniqueIdentifier;
        recordGroup         = GameObject.Find("HH_GameManager").GetComponent <PrizmRecordGroup> ();
        gameManager         = GameObject.Find("HH_GameManager").GetComponent <GameManager_HH> ();
        chooseSessionCanvas = GameObject.Find("ChooseSessionCanvas");
        playerNameCanvas    = GameObject.Find("PlayerNameCanvas");
        msgCanvas           = GameObject.Find("MsgCanvas");
        color = (PlayerColor.color)(Random.Range(0, System.Enum.GetValues(typeof(PlayerColor.color)).Length - 1));
        playerNameCanvas.SetActive(false);              //disable "Enter Player Name" for now
    }
 void Awake()
 {
     //obtain unique ID for device
     deviceID = SystemInfo.deviceUniqueIdentifier;
     recordGroup = GameObject.Find ("HH_GameManager").GetComponent<PrizmRecordGroup> ();
     gameManager = GameObject.Find ("HH_GameManager").GetComponent<GameManager_HH> ();
     chooseSessionCanvas = GameObject.Find ("ChooseSessionCanvas");
     playerNameCanvas = GameObject.Find ("PlayerNameCanvas");
     msgCanvas = GameObject.Find ("MsgCanvas");
     color = (PlayerColor.color)(Random.Range(0, System.Enum.GetValues(typeof(PlayerColor.color)).Length - 1 ));
     playerNameCanvas.SetActive (false);	//disable "Enter Player Name" for now
 }
Exemplo n.º 3
0
 void Awake()
 {
     recordGroup = GameObject.Find("HH_GameManager").GetComponent <PrizmRecordGroup> ();
     clientInit  = GameObject.Find("HH_GameManager").GetComponent <ClientInitialization> ();
     gameManager = GameObject.Find("HH_GameManager").GetComponent <GameManager_HH> ();
 }
Exemplo n.º 4
0
 void Awake()
 {
     recordGroup = GameObject.Find ("HH_GameManager").GetComponent<PrizmRecordGroup> ();
     clientInit = GameObject.Find ("HH_GameManager").GetComponent<ClientInitialization> ();
     gameManager = GameObject.Find ("HH_GameManager").GetComponent<GameManager_HH> ();
 }