// 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>(); }
public GolemResurrect(LietoResurrectSignal resurrectSignal, CharacterMotor motor, Life life, EnemyAttackAI ai) : base(resurrectSignal, motor, life) { _attackAi = ai; }