Example #1
0
 public void Init(Transform target, float duration, EnemyAstar t, float slimeRange = 8f, float attackRadius = 0.5f, string finishEvent = null)
 {
     this.target      = target;
     this.finishEvent = finishEvent;
     theMachine       = t;
     this.slimeRange  = slimeRange;
 }
Example #2
0
 public void Init(float duration, EnemyAstar tE, string finishEvent = null)
 {
     this.duration       = duration;
     this.cachedDuration = duration;
     this.finishEvent    = finishEvent;
     this.theEnemy       = tE;
 }
Example #3
0
 public void Init(Transform target, float duration, EnemyAstar t, GameObject bullet, float slimeRange = 8f, string finishEvent = null)
 {
     this.target      = target;
     this.finishEvent = finishEvent;
     theMachine       = t;
     this.slimeRange  = slimeRange;
     this.bullet      = bullet;
 }
Example #4
0
 public void Init(Transform target, string textToShow, float duration, EnemyAstar tE, string finishEvent = null)
 {
     this.textToShow     = textToShow;
     this.duration       = duration;
     this.cachedDuration = duration;
     this.finishEvent    = finishEvent;
     this.theEnemy       = tE;
     this.target         = target;
 }
Example #5
0
 public void Init(Transform target, float duration, EnemyAstar t, string finishEvent = null)
 {
     this.target       = target;
     this.TimeInDir    = Random.Range(0, duration);
     this.maxTimeInDir = duration;
     this.finishEvent  = finishEvent;
     this.polledTime   = 0;
     theMachine        = t;
 }
Example #6
0
 void Start()
 {
     memory = maxMemory;
     Myself = GetComponentInParent <EnemyAstar>();
     StartCoroutine("FindTargetsWithDelay", .2f);
 }