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; }
public void Init(float duration, EnemyAstar tE, string finishEvent = null) { this.duration = duration; this.cachedDuration = duration; this.finishEvent = finishEvent; this.theEnemy = tE; }
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; }
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; }
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; }
void Start() { memory = maxMemory; Myself = GetComponentInParent <EnemyAstar>(); StartCoroutine("FindTargetsWithDelay", .2f); }