void Awake()
        {
            if (instance != null)
            {
                Log.AddWarning("Radiac Environment replaced.");
            }

            instance = this;

            RadiacUpdates      = () => { };
            RadiacFixedUpdates = () => { };
            RadiacGUICallback  = () => { };

            // Static initialization are placed here.

            LocalizationSupport.LoadLocalizationFile();

            RadiacPanel.GlobalInit();
            VirtualCamera.Init();
            VirtualCursor.Init();
            RadiacInputController.Init();
        }
Exemplo n.º 2
0
 void SyncText()
 {
     text.text = LocalizationSupport.GetLocalizedString(requestString);
 }