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