Esempio n. 1
0
 void OnEnable()
 {
     Singleton_Service.RegisterSingletonInstance <Left_VR_Cont>(this);
     if (sheath != null)
     {
         sheath.leftController = this;
     }
     trackedObj = GetComponent <SteamVR_TrackedObject>();
 }
Esempio n. 2
0
 void OnEnable()
 {
     Singleton_Service.RegisterSingletonInstance <MenuGM>(this);
     highScoreLevel1.text = "Your high score:" + System.Environment.NewLine + PlayerPrefs.GetInt("HighScoreLevel1", 0);
     highScoreLevel2.text = "Your high score:" + System.Environment.NewLine + PlayerPrefs.GetInt("HighScoreLevel2", 0);
     highScoreLevel3.text = "Your high score:" + System.Environment.NewLine + PlayerPrefs.GetInt("HighScoreLevel3", 0);
     highScoreLevel4.text = "Your high score:" + System.Environment.NewLine + PlayerPrefs.GetInt("HighScoreLevel4", 0);
     if (AllLevelsHaveBeenCompleted())
     {
         highScoreBoss.text = "Your high score:" + System.Environment.NewLine + PlayerPrefs.GetInt("HighScoreBoss", 0);
     }
     else
     {
         highScoreBoss.text = "Unlocked when all" + System.Environment.NewLine + "4 missions are completed";
     }
 }
Esempio n. 3
0
 void OnEnable()
 {
     Singleton_Service.RegisterSingletonInstance <BossGM>(this);
 }
Esempio n. 4
0
 void OnEnable()
 {
     _camera = GetComponent <Camera>();
     _camera.depthTextureMode = DepthTextureMode.Depth;
     Singleton_Service.RegisterSingletonInstance(this);
 }
Esempio n. 5
0
 void OnEnable()
 {
     Singleton_Service.RegisterSingletonInstance <SwordUI>(this);
     UpdateStatsOnUI();
 }
Esempio n. 6
0
 private void OnEnable()
 {
     Singleton_Service.RegisterSingletonInstance(this);
 }