Beispiel #1
0
        //----- method -----

        public void Initialize(GameObject rootObject,
                               AdvResourceManager resourceManager, AdvSoundManager soundManager, AdvTimeScale timeScale,
                               HashSet <Type> commandControllerTypes, AdvObjectSetting advObjectSetting)
        {
            if (initialized)
            {
                return;
            }

            this.commandControllerTypes = commandControllerTypes;

            Resource = resourceManager;

            Sound = soundManager;

            TimeScale = timeScale;
            TimeScale.Initialize();

            ObjectManager = new AdvObjectManager();
            ObjectManager.Initialize(rootObject, advObjectSetting);

            IsExecute = false;

            initialized = true;
        }
Beispiel #2
0
        //----- method -----

        public void Initialize(GameObject rootObject, AdvObjectSetting advObjectSetting)
        {
            if (initialized)
            {
                return;
            }

            this.rootObject       = rootObject;
            this.advObjectSetting = advObjectSetting;

            UnityUtility.GetOrAddComponent <AdvObject>(rootObject);

            advObjects = new Dictionary <string, AdvObject>();

            initialized = true;
        }