void Awake()
    {
        cardDataBase    = GameObject.FindObjectOfType <Sc_CardDataBase>();
        saveDataManager = GameObject.FindObjectOfType <SaveDataManager>();
        levelManager    = GameObject.FindObjectOfType <Sc_LevelManager>();

        saveDataManager.LoadGameData();
    }
Exemple #2
0
 private void Awake()
 {
     if (myInstance == null)
     {
         myInstance = this;
         SceneManager.LoadScene(16, LoadSceneMode.Additive);
         myCurrentSceneIndex = 16;
     }
 }
    // Use this for initialization
    void Start()
    {
        scene = SceneManager.GetActiveScene();
        Button btn = thisButton.GetComponent <Button>();

        btn.onClick.AddListener(TaskOnClick);
        soundManager = GameObject.FindObjectOfType <Sc_SoundManager>();
        levelManager = GameObject.FindObjectOfType <Sc_LevelManager>();
        saveManager  = GameObject.FindObjectOfType <SaveDataManager>();
        gameManager  = GameObject.FindObjectOfType <Sc_GameManager>();
    }
 // Use this for initialization
 void Start()
 {
     firstEvent      = true;
     eventDataBase   = GameObject.FindObjectOfType <Sc_EventDataBase>();
     gameManager     = GameObject.FindObjectOfType <Sc_GameManager>();
     levelManager    = GameObject.FindObjectOfType <Sc_LevelManager>();
     monsterManager  = GameObject.FindObjectOfType <Sc_MonsterDataBase>();
     saveDataManager = GameObject.FindObjectOfType <SaveDataManager>();
     saveDataManager.saveData.currentScene = "Navigation";
     MonsterChance = 6;
     EventPressed();
 }