Esempio n. 1
0
 public void DoScene()
 {
     dorm.AddTo(afterBattle.Target);
     Destroy(afterBattle.Target.transform.gameObject);
     gameUI.Resume();
     // Needs testing
 }
Esempio n. 2
0
 private void Leave()
 {
     eventMenu.SetActive(false);
     canvasMain.Resume();
     if (gameUIWasActive)
     {
         canvasMain.ShowGameUI();
     }
 }
Esempio n. 3
0
 public void LeaveHome()
 {
     if (toPlatform == null)
     {
         mapEvents.Teleport(worldMaps, toMap);
     }
     else
     {
         mapEvents.Teleport(worldMaps, toMap, toPlatform);
     }
     GameManager.CurrentArea = GlobalArea.Map;
     canvasMain.Resume();
 }
Esempio n. 4
0
    public IEnumerator StartFight(List <BasicChar> EnemyTeam)
    {
        TeamContainer.transform.KillChildren();
        Team = EnemyTeam;
        // Wait one frame so all children are properly dead...
        yield return(null);

        if (Team.Count < 1) // if team is less than 1 an error must have occured
        {
            gameUI.Resume();
        }
        else
        {
            foreach (BasicChar combatant in Team)
            {
                Instantiate(CombatStatusPrefab, TeamContainer.transform).Setup(combatant, this, combatMain);
            }
            combatStatuses = new List <CombatStatus>(TeamContainer.GetComponentsInChildren <CombatStatus>());
        }
    }