예제 #1
0
        public void OpenPlayerActionWindow()
        {
            var playersTakingActions = true;

            while (playersTakingActions)
            {
                playersTakingActions = false;

                foreach (var player in Players)
                {
                    ActivePlayer = player;

                    var effect = new PlayerActionWindow(this, player);
                    var handle = effect.GetHandle(this);

                    Prepare(handle);

                    TriggerEffect(handle);

                    if (handle.IsResolved)
                    {
                        playersTakingActions = true;
                    }

                    Cleanup();
                }
            }

            Cleanup();
        }
예제 #2
0
 public PlayerActionWindow CreatePlAW()
 {
     paw = ((GameObject)Instantiate(PlayerActionPrefub, this.transform.position, this.transform.rotation, this.transform)).GetComponent <PlayerActionWindow>();
 }