//protected CQ_Interface _interface;

    #region Unity Callbacks
    void Start()
    {
        GameObject.DontDestroyOnLoad(gameObject);
        GameObject.DontDestroyOnLoad(coreManagers.transform.parent != null ? coreManagers.transform.parent.gameObject : coreManagers.gameObject);
        GameObject.DontDestroyOnLoad(gameManagers.transform.parent != null ? gameManagers.transform.parent.gameObject : gameManagers.gameObject);

        //_interface = GameObject.FindGameObjectWithTag("Interface").GetComponent<CQ_Interface>();

        EnvironmentManager envManager = gameManagers.GetComponent <EnvironmentManager>();

        envManager.progressSignals.Register(gameObject, "OnEnvManagerProgress", 0.0f);

        BalanceBoardManager bbManager = coreManagers.GetComponent <BalanceBoardManager>();

        bbManager.progressSignals.Register(gameObject, "OnBBManagerProgress", 0.0f);

        ObstaclesManager staticManager = gameManagers.GetComponent <ObstaclesManager>();

        staticManager.progressSignals.Register(gameObject, "OnObstacleManagerProgress", 0.0f);

        ExternalTexturesManager texturesManager = gameManagers.GetComponent <ExternalTexturesManager>();

        texturesManager.progressSignals.Register(gameObject, "OnExternalTexturesManagerProgress", 0.0f);

        BuildingAssetsManager assetsManager = gameManagers.GetComponent <BuildingAssetsManager>();

        assetsManager.progressSignals.Register(gameObject, "OnBuildingAssetsManagerProgress", 0.0f);

        GameplayManager gameplayManager = gameManagers.GetComponent <GameplayManager>();

        gameplayManager.progressSignals.Register(gameObject, "OnGameplayManagerProgress", 0.0f);

        GeneralSoundsManager soundManager = gameManagers.GetComponent <GeneralSoundsManager>();

        soundManager.progressSignals.Register(gameObject, "OnSoundManagerProgress", 0.0f);

        TrackingManager.Instance.Version = version;
    }
示例#2
0
 void Awake()
 {
     manager = GameObject.FindGameObjectWithTag("GameManagers").GetComponent <BuildingAssetsManager>();
     env     = GameObject.FindGameObjectWithTag("GameManagers").GetComponent <EnvironmentManager>();
 }