Exemplo n.º 1
0
 public override void Initialize()
 {
     playerLayer     = LayerMask.GetMask("Player");
     groundLayer     = LayerMask.GetMask("Platform");
     player          = GameObject.Find("Player");
     attackComponent = GetComponent <AttackEnemies>();
 }
Exemplo n.º 2
0
 private void Start()
 {
     canFight          = enemy.GetComponent <CanFight>();
     attackComponent   = enemy.GetComponent <AttackEnemies>();
     interruptVector.x = interruptVectorX;
     interruptVector.y = interruptVectorY;
 }
Exemplo n.º 3
0
 public override void OnStart()
 {
     base.OnStart();
     attackComponent   = GetComponent <AttackEnemies>();
     movementComponent = GetComponent <MovementEnemies>();
 }
Exemplo n.º 4
0
 public override void OnStart()
 {
     base.OnStart();
     defenceComponent = GetComponent <DefenceEnemies>();
     attackComponent  = GetComponent <AttackEnemies>();
 }