EnemyArrow.cs 470 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class EnemyArrow : EnemyBase {
  5. internal override bool isPressingCrouch() => false;
  6. internal override bool isPressDownJump() => false;
  7. internal override bool isPressingLeft() => movingLeft;
  8. internal override bool isPressingRight() => !movingLeft;
  9. internal override void OnHitEnemy(Collision2D collision) {
  10. Modules.DestroyGameObject(gameObject);
  11. }
  12. }