// Use this for initialization void Start() { //Singleton if (uniqueInstance == null) uniqueInstance = this; else Destroy (this.gameObject); TotalManager.I.currentScene = SceneToStart; //test: if PlayerLevelData works well // TotalManager will log 'level 8' Player's maxHP and 'level 20' player's needEXP Debug.Log ("Level 8 player's HP : " + PlayerLevelData.I.Status[8].maxHP); Debug.Log ("Level 20 player's needEXP : " + PlayerLevelData.I.Status[20].needEXP); //test end. }
public void Awake() { Instance = this; totalManager = TotalManager.Instance; }
public void OnEnable() { _target = (TotalManager)base.target; }
public void Awake() { Instance = this; InitGameSettings(); showTutorial = true; }