void Awake() { leftExtreme = Quaternion.AngleAxis(ScanArcAngle / 2f, Vector3.up) * transform.rotation; rightExtreme = Quaternion.AngleAxis(-ScanArcAngle / 2f, Vector3.up) * transform.rotation; team = GetComponent <TeamMember>(); }
void Start() { gun = GetComponent <GunWithClip>(); team = GetComponent <TeamMember>(); StartCoroutine(PatrolState()); }
void Start() { team = GetComponent <TeamMember>(); StartCoroutine(PatrolState()); }