// 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.
    }
Example #2
0
 public void Awake()
 {
     Instance = this;
     totalManager = TotalManager.Instance;
 }
Example #3
0
 public void OnEnable()
 {
     _target = (TotalManager)base.target;
 }
Example #4
0
 public void Awake()
 {
     Instance = this;
     InitGameSettings();
     showTutorial = true;
 }