Esempio n. 1
0
        public void ExchangeCredits(Entity activator)
        {
            if (activator is Player player)
            {
                if (player.Credits >= Credits)
                {
                    player.Credits -= Credits;

                    _ = OnSuccess.Fire(activator);
                }
                else
                {
                    _ = OnFailure.Fire(activator);
                }
            }
        }