Пример #1
0
    // Use this for initialization
    void Start () {
		idStore = GameObject.Find ("PlayerManager").GetComponent<PlayerIDs> ();
        GSManager = GameObject.Find("GameState").GetComponent<GameStateManager>();
		wallCheck = GetComponentInChildren<WallCheck>();
		if (isServer) {
			GSManager.AddPlayer (this.gameObject);
		}
		if (isLocalPlayer) {
			GSManager.StoreLocalPlayer (this);
		}
	}
Пример #2
0
 // Use this for initialization
 void Start()
 {
     idStore   = GameObject.Find("PlayerManager").GetComponent <PlayerIDs> ();
     GSManager = GameObject.Find("GameState").GetComponent <GameStateManager>();
     wallCheck = GetComponentInChildren <WallCheck>();
     if (isServer)
     {
         GSManager.AddPlayer(this.gameObject);
     }
     if (isLocalPlayer)
     {
         GSManager.StoreLocalPlayer(this);
     }
 }