Пример #1
0
 // Start is called before the first frame update
 public virtual void Start()
 {
     rb       = this.GetComponent <Rigidbody2D>();
     attackAI = this.GetComponent <EnemyAttackAI>();
     state    = State.Follow;
     move     = moveSpeed;
     if (!active)
     {
         enabled = false;
     }
     player = GameObject.Find("ActivePlayer").GetComponent <Transform>();
 }
Пример #2
0
 public GolemResurrect(LietoResurrectSignal resurrectSignal, CharacterMotor motor, Life life, EnemyAttackAI ai) : base(resurrectSignal, motor, life)
 {
     _attackAi = ai;
 }