void stab() { if (mainMovementState != null && mainMovementState is NPCState) { NPCState npcState = (NPCState)mainMovementState; npcState.Stab(); } }