コード例 #1
0
        public override void Init()
        {
            LoadLevelType();

            camController            = FindObjectOfType <CamControllerGameplay>();
            poolingManager           = FindObjectOfType <PoolingManager>();
            playerController         = FindObjectOfType <PlayerSpawner>().SpawnPlayer();
            moveToMousePos           = FindObjectOfType <MoveToMousePosition>();
            bulletManager            = FindObjectOfType <Weapon_BulletManager>();
            worldInteractionsManager = FindObjectOfType <WorldInteractionsManager>();
            challenegeManager        = FindObjectOfType <ChallengeManager>();

            aimCursorManager           = FindObjectOfType <AimCursorManager>();
            uiWorldInteractionManager  = FindObjectOfType <UI_WorldInteractionManager>();
            uiLevelRestartManager      = FindObjectOfType <UI_LevelRestartManager>();
            uiReloadProgressBar        = FindObjectOfType <UI_ReloadProgressBar>();
            pauseMenuController        = FindObjectOfType <PauseMenuController>();
            weaponSelectionMenuManager = FindObjectOfType <WeaponSelectionMenuManager>();

            aiManager = FindObjectOfType <AIManager>();

            camController.Init();
            poolingManager.Init();
            moveToMousePos.Init();
            bulletManager.Init();
            playerController.Init();
            worldInteractionsManager.Init();

            aimCursorManager.Init();
            uiWorldInteractionManager.Init();
            uiLevelRestartManager.Init();
            uiReloadProgressBar.Init();
            weaponSelectionMenuManager.Init();

            aiManager.Init();
            challenegeManager.Init();
            pauseMenuController.Init();


            //Place Code Above Here
            base.Init();
        }