Esempio n. 1
0
        public void Update()
        {
            if (isOnline)
            {
                gameData.Update();

                if (!ActionEnabled() && !gManager.progression.IsGameProcessing())
                {
                    EnableAction();
                }

                if (ActionEnabled())
                {
                    if (gameData.HasWaitingNotification())
                    {
                        BGA.NotificationData notif = gameData.ProcessWaitingNotification();
                        Action action = ExtractAction(notif);
                        actionPlayer.ExecuteAction(action);
                    }
                }
            }
        }