public override void Start() { base.Start(); _teleportation = GetComponent <Teleportation>(); _movement = GetComponent <SidescrollingMovement>(); _hitboxes = GetComponentInChildren <HitboxController>(); _spiralProjectileSpam = GetComponent <SpiralProjectileSpam>(); _actions = new List <Action> { MoveToPlayer, AttackPlayer, TeleportBehindPlayer, MoveToPlayer, AttackPlayer, TeleportToCenter, SpamMagic, TeleportBehindPlayer, }; _originalPosition = transform.position; _currentAnimation = IdleLeft; _isFacingLeft = true; }
public override void Start() { base.Start(); _teleportation = GetComponent <Teleportation>(); _boxController = GetComponentInChildren <HitboxController>(); _spiralProjectileSpam = GetComponent <SpiralProjectileSpam>(); _states = new List <Action> { TeleportToAnchor, ConjureProjectile, LaunchProjectileAtPlayer, WatchTheBolt, TeleportToAnchor, ConjureProjectile, SpamMagic, WatchTheBolt, }; _facingLeft = true; _animation = IdleLeft; }