Esempio n. 1
0
 void Start()
 {
     gameManager = Managers.GameManager.Instance;
     //Set intials to AAA
     GetCurrentInitials();
     //Load text fields from gameobjects
     initial1_text = initial1.GetComponent <Text>();
     initial2_text = initial2.GetComponent <Text>();
     initial3_text = initial3.GetComponent <Text>();
     //Load char list
     charList = charString.ToCharArray();
     //Update display
     UpdateCharDisplay();
 }
Esempio n. 2
0
        void Start()
        {
            gameManager = FindObjectOfType<Managers.GameManager>();
            winPopup = transform.GetChild(0).gameObject;
            levelController = FindObjectOfType<LevelController>();

            totalSpiritCount = gameManager.GetTotalSoulCount();


            if (!gameManager || !winPopup || !levelController)
            {
                throw new System.Exception("Scene does not contain expected Object");
            }
        }
Esempio n. 3
0
    void Awake()
    {
        Managers.GameManager gameManager = FindObjectOfType <Managers.GameManager>();
        if (gameManager == null)
        {
            _setLevelOnStart = true;
            SceneManager.LoadScene("Managers", LoadSceneMode.Additive);
        }

        GameObject[] wallChunks = GameObject.FindGameObjectsWithTag("WallChunk");
        for (int i = 0; i < wallChunks.Length; i++)
        {
            WallChunks.Add(wallChunks[i].GetComponent <RandomizedWallsChunkManager>());
        }
    }
Esempio n. 4
0
 private void Start()
 {
     gameManager   = Managers.GameManager.Instance;
     levelManager  = Managers.LevelManager.Instance;
     scenesManager = Managers.ScenesManager.Instance;
 }
 private void Start()
 {
     scenesManager = Managers.ScenesManager.Instance;
     gameManager   = Managers.GameManager.Instance;
 }