public MoveEndTask(IRandomMoveAI AI, float fTime)
 {
     myAI     = AI;
     fEndtime = fTime;
     waitTime = new WaitForSeconds(fEndtime);
 }
Esempio n. 2
0
 public override void OnEnable()
 {
     base.OnEnable();
     randomAI = enemyObject.GetComponent <IRandomMoveAI>();
 }
 public MovingCondition(IRandomMoveAI AI)
 {
     myAI = AI;
 }
Esempio n. 4
0
 public override void OnDisable()
 {
     base.OnDisable();
     currentDir = Vector3.zero;
     randomAI   = null;
 }
Esempio n. 5
0
 public MoveCountCondition(int nCount, IRandomMoveAI randomAI)
 {
     nMaxCount         = nCount;
     nCurrentMoveCount = 0;
     myRandomAI        = randomAI;
 }