Ejemplo n.º 1
0
        protected AInputTextModule(RectTransform ParentTransform)
        {
            var instaciatedText = MonoBehaviour.Instantiate(InputDynamicTextMenuConfigurationGameObject.Get().InputDynamicTextMenuConfiguration.InputDynamicTextMenuModuleTemplatePrefab, ParentTransform);

            this.InstanciatedText = instaciatedText.GetComponent <TextMeshProUGUI>();
            (this.InstanciatedText.transform as RectTransform).ResetLocalPositionAndRotation();
        }
Ejemplo n.º 2
0
        public InputDynamicTextMenuManager()
        {
            var InputDynamicTextMenuConfiguration = InputDynamicTextMenuConfigurationGameObject.Get().InputDynamicTextMenuConfiguration;

            this.UIInputDynamicTextMenuModulesContainer = MonoBehaviour.Instantiate(InputDynamicTextMenuConfiguration.UIInputDynamicTextMenuModulesContainerPrefab, CoreGameSingletonInstances.GameCanvas.transform);
            var containerRectTransform = this.UIInputDynamicTextMenuModulesContainer.GetComponent <RectTransform>();

            this.RegisterEvents();

            this.LocomotionTextModule      = new LocomotionTextModule(containerRectTransform);
            this.CameraTextModule          = new CameraTextModule(containerRectTransform);
            this.TimeStopModule            = new TimeStopModule(containerRectTransform);
            this.FiringModeEnterTextModule = new FiringModeEnterTextModule(containerRectTransform);
            this.OnTargettingTextModule    = new OnTargettingTextModule(containerRectTransform);
            this.OnTargettingTextModule.Disable();
            this.CancelActionTextModule = new CancelActionTextModule(containerRectTransform);
            this.CancelActionTextModule.Disable();
        }