void OnEnable() { Singleton_Service.RegisterSingletonInstance <Left_VR_Cont>(this); if (sheath != null) { sheath.leftController = this; } trackedObj = GetComponent <SteamVR_TrackedObject>(); }
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"; } }
void OnEnable() { Singleton_Service.RegisterSingletonInstance <BossGM>(this); }
void OnEnable() { _camera = GetComponent <Camera>(); _camera.depthTextureMode = DepthTextureMode.Depth; Singleton_Service.RegisterSingletonInstance(this); }
void OnEnable() { Singleton_Service.RegisterSingletonInstance <SwordUI>(this); UpdateStatsOnUI(); }
private void OnEnable() { Singleton_Service.RegisterSingletonInstance(this); }