Пример #1
0
 // Use this for initialization
 void Start()
 {
     currState   = BOT_FStateMachineRespawn.Stop;
     bOT_Profile = GetComponent <BOT_Profile>();
     gameManager = GameObject.Find("GameManager").GetComponent <GameManager>();
     mesh        = transform.Find("Player_3PNew:Character_Unwrapped:Egor");
     bOT_Manager = GetComponent <BOT_Manager>();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     navMeshAgent = GetComponent <NavMeshAgent> ();
     shootScript  = GetComponent <Shoot> ();
     bOT_Profile  = GetComponent <BOT_Profile>();
     bOT_Manager  = GetComponent <BOT_Manager>();
     photonView   = GetComponent <PhotonView>();
     Debug.Log(photonView.owner.GetTeam());
 }