Beispiel #1
0
    public override void Enter()
    {
        gm = context.GetGameManager();
        UI_Manager            uiMng    = FindObjectOfType <UI_Manager>();
        SceneReferenceManager sceneRef = FindObjectOfType <SceneReferenceManager>();

        gm.SetUIManager(uiMng);
        gm.SetSceneReferenceManager(sceneRef);

        uiMng.Setup(gm);

        Complete();
    }
Beispiel #2
0
 public void OnSceneChange(string sceneName)
 {
     UIManager.OnSceneChange();
     Data.SetCurrentScene(sceneName);
     _sceneReferenceManager = GameObject.FindObjectOfType <SceneReferenceManager>();
     _mageFactory.SetStationObjects(_sceneReferenceManager.StationObjects);
     WaveManager.SetWaypoints(_sceneReferenceManager.StartWaypoint, _sceneReferenceManager.EndWaypoint);
     for (var i = 0; i < _sceneReferenceManager.AllAssignableBuildings.Length; i++)
     {
         _sceneReferenceManager.AllAssignableBuildings[i].Initialize(i, this);
     }
     InitializeMages();
     StartCoroutine(WaveManager.SendWave());
 }
Beispiel #3
0
 /// <summary>
 /// Funzione che ritorna il Scene Referenze Manager
 /// </summary>
 /// <param name="_sceneRefMng"></param>
 public void SetSceneReferenceManager(SceneReferenceManager _sceneRefMng)
 {
     sceneRefMng = _sceneRefMng;
 }