예제 #1
0
 // Called on game start
 public void Init()
 {
     transform.position = initialPosition;
     if (!isPlayingTutorial)
     {
         magnetCtrlr.Init();
         jumpCtrlr.Init();
         oxygenCtrlr.Init();
     }
 }
예제 #2
0
 void OnEnable()
 {
     state                             = 0;
     nbJump                            = 0;
     nbBubbles                         = 0;
     JumpController.OnJump            += OnJump;
     OxygenController.OnBubbleCollect += OnBubbleCollect;
     tutorialConfiner.SetActive(true);
     meterCounter.SetActive(false);
     jumpCtrlr.enabled = true;
     jumpCtrlr.Init();
     // Tuto canvas
     tutorialCanvas.SetActive(true);
     // Oxygen
     oxygenBar.SetActive(false);
     oxygenCtrlr.enabled = false;
     // Magnet
     magnetControllerLayout.SetActive(false);
     magnetCtrlr.Init();
     magnetCtrlr.enabled        = false;
     levelSettingsCtrlr.enabled = false;
     StartJumpTutorial();
 }