private void OnGameplayEventRecived(string message, GamePlayManager.GameplayEvent type) { if (type == GamePlayManager.GameplayEvent.IntroQuest) { Init(); } if (type == GamePlayManager.GameplayEvent.PreMoveState) { PreMovement(); //currentUnit.myFX.gold.enabled = true; } if (type == GamePlayManager.GameplayEvent.MoveState) { Movement(); } if (type == GamePlayManager.GameplayEvent.PreAttackState) { PreAttack(); } if (type == GamePlayManager.GameplayEvent.AttackState) { Attack(); } if (type == GamePlayManager.GameplayEvent.TurnEnd) { //currentUnit.myFX.gold.enabled = false; TurnEnd(); } }
private void OnGameplayEventReceive(string message, GamePlayManager.GameplayEvent type) { if (type == GamePlayManager.GameplayEvent.StartQuest) { horizontalMax = PF_GamePlay.ActiveQuest.Acts.ToList()[0].Value.MapData.Values.ToList()[0].Count; verticalMax = PF_GamePlay.ActiveQuest.Acts.ToList()[0].Value.MapData.Keys.ToList().Count; } if (type == GamePlayManager.GameplayEvent.PreMoveState) { isOnMoving = true; } }
private void OnGameplayEventReceived(string message, GamePlayManager.GameplayEvent type) { //currentStateText.text = type.ToString(); currentTurnText.text = uiManager.playManager.currentTurn.ToString(); if (uiManager.unitController.currentUnit != null && uiManager.unitController.currentUnit.tag.Contains("Player")) { currentStateText.text = "Player's Turn _ " + type.ToString(); } else if (uiManager.unitController.currentUnit != null && !uiManager.unitController.currentUnit.tag.Contains("Player")) { currentStateText.text = "Enemy's Turn _ " + type.ToString(); } }
private void OnGameplayEventReceive(string message, GamePlayManager.GameplayEvent type) { if (type == GamePlayManager.GameplayEvent.IntroQuest) { //PF_GamePlay.IntroPane(actIntroObject.gameObject, 0); actIntroObject.ShowInfo(); } if (type == GamePlayManager.GameplayEvent.OnAllPlayerReady) { actIntroObject.RefreshConfirmPanel(); } if (type == GamePlayManager.GameplayEvent.OutroAct) { actOutroObject.UpdateQuestStats(); PF_GamePlay.IntroPane(actOutroObject.gameObject, 0); } }
private void OnGameplayEventRecieve(string message, GamePlayManager.GameplayEvent type) { if (type == GamePlayManager.GameplayEvent.IntroQuest) { GenerateMapData(); GeneratePathfindingGraph(); GenerateMapVisual(); } if (type == GamePlayManager.GameplayEvent.MyPlayerPreMove) { } if (type == GamePlayManager.GameplayEvent.MyPlayerPreAttack) { } if (type == GamePlayManager.GameplayEvent.TurnEnd) { //DisableSpellRnage(); } }
private void OnGameplayEventReceive(string message, GamePlayManager.GameplayEvent type) { if (type == GamePlayManager.GameplayEvent.IntroQuest) { //string levelname = (string)PhotonNetwork.room.CustomProperties["Level"]; //OpenConfirmPanel(PF_GameData.Levels[levelname].Acts.Values.ToList()[0].IntroMonolog); } if (type == GamePlayManager.GameplayEvent.StartQuest) { GenerateHealthBar(); orderBarController.Init(this.unitController); Debug.Log(" Geenerate Health Bar !!!"); } if (type == GamePlayManager.GameplayEvent.MyPlayerPreMove) { if (unitController.currentUnit == null) { return; } if (GamePlayManager.IsMultiPlayer) { if (playManager.IsPhotonPlayersTurn(unitController.currentUnit.name)) { ActionBar.Init(unitController.currentUnit); } } else { ActionBar.Init(unitController.currentUnit); } } if (type == GamePlayManager.GameplayEvent.MyPlayerPreAttack) { if (unitController.currentUnit == null) { return; } if (GamePlayManager.IsMultiPlayer) { if (unitController.currentUnit.name.Contains(PhotonNetwork.player.UserId)) { ActionBar.EnableSkills(); } } else { ActionBar.EnableSkills(); } } if (type == GamePlayManager.GameplayEvent.TurnEnd) { ActionBar.Close(); orderBarController.RefreshBar(); } if (type == GamePlayManager.GameplayEvent.OutroAct) { PF_GamePlay.OutroPane(healthBarParent.gameObject, 0); } }