// 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>(); }
// 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()); }