コード例 #1
0
 void OnEnable()
 {
     Singleton_Service.RegisterSingletonInstance <Left_VR_Cont>(this);
     if (sheath != null)
     {
         sheath.leftController = this;
     }
     trackedObj = GetComponent <SteamVR_TrackedObject>();
 }
コード例 #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";
     }
 }
コード例 #3
0
ファイル: BossGM.cs プロジェクト: ckusuma/Flaming-Ninja-Code
 void OnEnable()
 {
     Singleton_Service.RegisterSingletonInstance <BossGM>(this);
 }
コード例 #4
0
 void OnEnable()
 {
     _camera = GetComponent <Camera>();
     _camera.depthTextureMode = DepthTextureMode.Depth;
     Singleton_Service.RegisterSingletonInstance(this);
 }
コード例 #5
0
ファイル: SwordUI.cs プロジェクト: ckusuma/Flaming-Ninja-Code
 void OnEnable()
 {
     Singleton_Service.RegisterSingletonInstance <SwordUI>(this);
     UpdateStatsOnUI();
 }
コード例 #6
0
 private void OnEnable()
 {
     Singleton_Service.RegisterSingletonInstance(this);
 }