예제 #1
0
        //private InputBoxUi inputBox;

        public InputBoxUi_V2(InputBoxUi inputBox)
        {
            //if (inputBox == Manager.GetUIManager().InputBoxUi)
            //{
            //    inputBox = UnityEngine.Object.Instantiate(Manager.GetUIManager().m_InputBoxUi);
            //    Manager.GetUIManager().InputBoxUi.Hide();
            //}
            transform.parent      = inputBox.transform.parent;
            transform.position    = inputBox.transform.position;
            transform.rotation    = inputBox.transform.rotation;
            transform.eulerAngles = inputBox.transform.eulerAngles;
            transform.localScale  = inputBox.transform.localScale;

            m_TitleText             = inputBox.m_TitleText;
            m_InputFieldLabel       = inputBox.m_InputFieldLabel;
            m_InputControlContainer = inputBox.m_InputControlContainer;
            m_OkButtonContainer     = inputBox.m_OkButtonContainer;
            m_CancelButtonContainer = inputBox.m_CancelButtonContainer;
            m_InputBoxType          = inputBox.InputBoxType;
            m_TimeScaler            = TimeManager.AddTimeScaler(1f);
            InputText = inputBox.InputText;

            inputBox.transform.SetParent(this.transform);

            foreach (Transform t in inputBox.transform)
            {
                t.SetParent(this.transform);
            }
            //if(inputBox != Manager.GetUIManager().InputBoxUi)
            //    Destroy(inputBox);
            Show();
        }
예제 #2
0
 public void Initialize()
 {
     Debug.Log("Initializing Satellite Reign Ultimate Ironman mod");
     m_TacticalPauseTimeScaler = TimeManager.AddTimeScaler();
     shownModInfo = false;
     ironmanMode  = false;
 }
예제 #3
0
 /// <summary>
 /// Plugin initialization
 /// </summary>
 public void Initialize()
 {
     Debug.Log("Initializing Satellite Reign unstuck mod");
     m_TacticalPauseTimeScaler = TimeManager.AddTimeScaler();
     timer = Time.time;
 }