public void Execute(IGameObject gameObject1, IGameObject gameObject2) { FireBallProjectile fireBall = (FireBallProjectile)gameObject1; Goomba2 enemy = (Goomba2)gameObject2; if (!enemy.Alive) { return; } if (enemy.State.GetType() != typeof(GoombaDeadState)) { fireBall.Terminate(); ScoringSystem.AddPointsForFireballGoombaHit(gameObject2, fireBall.InitiatingPlayer); enemy.Terminate("LEFT"); SoundManager.Instance.PlayKickSound(); } }