Exemplo n.º 1
0
    /// <summary>
    /// Funzione di Setup dello script
    /// </summary>
    public void Setup()
    {
        lvlSceneCtrl    = GetComponent <LevelSceneController>();
        lvlCamCtrl      = GetComponent <LevelCameraController>();
        lvlPauseCtrl    = GetComponent <LevelPauseController>();
        lvlBossCtrl     = GetComponent <LevelBossController>();
        lvlTutorialCtrl = GetComponent <LevelTutorialController>();
        groupCtrl       = FindObjectOfType <GroupController>();

        lvlSceneCtrl.Setup();
        lvlCamCtrl.Setup(this);
        lvlPauseCtrl.Setup();

        if (lvlBossCtrl != null)
        {
            lvlBossCtrl.Setup(this);
        }

        if (lvlTutorialCtrl != null)
        {
            lvlTutorialCtrl.Setup(this);
        }

        groupCtrl.Move(groupStartPosition.position);
        groupCtrl.Enable(true);
    }
Exemplo n.º 2
0
 /// <summary>
 /// Funzione di Setup
 /// </summary>
 /// <param name="_lvlMng"></param>
 public void Setup(LevelTutorialController _tutorialCtrl)
 {
     lvlTutorialCtrl = _tutorialCtrl;
     inRange         = false;
 }