public override void OnCollisionResponse(ICollider otherCollider, CollisionDetection.CollisionSide collisionSide) { if (otherCollider is IPlayer && !(((Link)otherCollider).State is PickupItemState || CurrentState is StunnedEnemyState) && !LoZGame.Instance.Players[0].Inventory.HasClock) { CurrentState.Attack(); } else if (otherCollider is IBlock && !(CurrentState is AttackingWallMasterState)) { EnemyCollisionHandler.OnCollisionResponse((IBlock)otherCollider, collisionSide); } else if (otherCollider is IProjectile && Timer <= 100) { EnemyCollisionHandler.OnCollisionResponse((IProjectile)otherCollider, collisionSide); } }
public override void Attack() { CurrentState.Attack(); }