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(); }
public PlayerActionWindow CreatePlAW() { paw = ((GameObject)Instantiate(PlayerActionPrefub, this.transform.position, this.transform.rotation, this.transform)).GetComponent <PlayerActionWindow>(); }