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