示例#1
0
 // Use this for initialization
 void Start()
 {
     //set patrul behavior
     currentBehavior = Patrul;
     //init locator
     locator = GetComponent <TargetLocator>();
 }
示例#2
0
 public EnemieItem(GameObject gameObject)
     : base(gameObject)
 {
     locator = gameObject.GetComponent <TargetLocator>();
     if (locator != null)
     {
         horizontal = locator.targetDirection.x;
     }
 }
示例#3
0
 void Start()
 {
     base.Start();
     locator = GetComponent <TargetLocator>();
 }