Пример #1
0
 public void ComponentInit()
 {
     //_meshRenderer = GetComponent<MeshRenderer>();
     _meshModel    = transform.GetChild(0).gameObject;
     _uiController = GameObject.Find("GameCanvas").GetComponent <UIController>();
     _photonView   = GetComponent <PhotonView>();
     Controller    = GetComponent <GamePlayerController>();
     User          = _photonView.Owner;
     _board        = GameObject.Find("ScoreBoard").GetComponent <GameBoard>();
     _board.AddEntry(this.gameObject);
     Dead();
 }