// Start is called before the first frame update void Start() { rigidbody = GetComponent <Rigidbody2D>(); ship = GetComponent <SpriteRenderer>(); laserCanon = GetComponent <LaserCanon>(); magnet = GetComponent <Magnet>(); Active = false; }
public AIChaseTargetState(EnemyAI entity) : base(entity) { this.stateID = StateID.EnemyAIChase; this.weapon = this.parentEntity.GetComponentInChildren<LaserCanon>(); }