void Awake()
 {
     debugger = GetComponent <EnemyDebugger>();
     EnemyIndex++;
     gameObject.name = EnemyName;
     Rb               = GetComponent <Rigidbody2D>();
     currentHealth    = maxHealth;
     CurrentMovespeed = maxSpeed;
 }
Ejemplo n.º 2
0
 public EnemyState(EnemySoilder owner, EnemyDebugger debugger)
 {
     this.owner    = owner;
     this.debugger = debugger;
 }
 public EnemyStateRoam(EnemySoilder owner, EnemyDebugger debugger) : base(owner, debugger)
 {
     currentWaypoint = FindClosestWaypoint();
     move            = new EnemyMoveNonCombat(owner, currentWaypoint.Position, OnMoveTargetReached, OnPathCreated);
 }
 public EnemyStateCombat(EnemySoilder owner, EnemyDebugger debugger) : base(owner, debugger)
 {
 }