Example #1
0
    private void Awake()
    {
        gameMgr = FindObjectOfType<GameManager>();
        goldMgr = FindObjectOfType<GoldManager>();
        orderMgr = FindObjectOfType<SpriteOrderLayerManager>();
        satanCastle = GameObject.Find("SatanCastle");

        for (int i = 1; i <= 3; ++i)
        {
            ourForceLinePos.Add(satanCastle.transform.FindChild(string.Format("Spawn Line{0}", i)).position);
        }
    }
Example #2
0
    private void Awake()
    {
        orderMgr = FindObjectOfType<SpriteOrderLayerManager>();
        battleMgr = FindObjectOfType<BattleManager>();
        itemMgr = FindObjectOfType<ItemManager>();
        bgmMgr = FindObjectOfType<BgmManager>();
        isRun = true;
        pauseUI = FindObjectOfType<Pause>();
        isDefenceTurn = true;

        PlayerData.instance.CheckInstance();

        GameEventManager.instance.CheckInstance();

        StartCoroutine(SceneFader.Instance.FadeIn(0.6f));
        GameObject.FindObjectOfType<SceneFader>().transform.SetParent(Camera.main.transform, true);
    }