Пример #1
0
    // Update is called once per frame
    void Update()
    {
        if (GameObject.Find("UiManager(Clone)"))
        {
            uim = GameObject.Find("UiManager(Clone)").GetComponent<UiManager>();
        }

        hpBars = (unit.GetComponent<AttributeComponent>().hp+9 ) /10;
    }
 void Start()
 {
     uiManager = GetComponent<UiManager> ();
     imageLoader = gameObject.AddComponent<JplImageLoader> ();
     imageLoader.onImageLoadingProgress += HandleImageLoadingProgress;
     imageLoader.onImageLoadingComplete += HandleImageLoadingComplete;
     imageLoader.onImageLoadingError += HandleImageLoadingError;
     GvrViewer.Instance.OnTrigger += HandleCardboardTrigger;
     GvrViewer.Instance.OnBackButton += HandleCardboardBackButton;
 }
	void Start () 
	{
		ui = FindObjectOfType<UiManager> ();

		speakerNum = speakers.childCount;
		angleDiff = 360 / speakerNum;

		answerLogs = new List<AnswerLog> ();

		audioSource = GetComponent<AudioSource> ();
	}
 private void Awake()
 {
     if (instance == null)
     {
         instance     = this;
         activeCanvas = 0;
     }
     else if (instance != this)
     {
         Debug.Log("Instance already exists, destroying component");
         Destroy(this);
     }
 }
Пример #5
0
        public static void Main(string[] args)
        {
            Log.InfoFormat("Starting...");

            //var s = new MiNetServer(new IPEndPoint(IPAddress.Any, 19132));
            var uiManager = new UiManager();

            uiManager.Start();

            Console.ReadLine();

            uiManager.Stop();
        }
    public void BeTouched()
    {
        if (effects)
        {
            effects.SetActive(false);
        }
        destroy = true;
        anim.SetTrigger("touche");

        PlayerController.IncrementScore(Mathf.RoundToInt(value * multiplier));
        SoundManager.PlaySound(hitSound);
        UiManager.UpdateUI();
    }
Пример #7
0
    /// <summary>
    /// Atart this instance.
    /// </summary>
    void Start()
    {
        var floor = GameObject.Find("Floor");

        if (floor != null)
        {
            floor.SetActive(false);
        }

        uiManager = FindObjectOfType <UiManager>();
        Debug.Assert(uiManager && actions, "Wrong initial parameters");
        CloseActions();
    }
Пример #8
0
        protected override void Update(GameTime gameTime)
        {
            //if (!IsActive)
            //    return;

            float deltaTime = (float)gameTime.ElapsedGameTime.TotalSeconds;

            fps.Update(deltaTime);

            UiManager.GetActiveUserInterface().Update(gameTime);

            base.Update(gameTime);
        }
    // Start is called before the first frame update
    void Start()
    {
        _initialSpeed = speed;

        _uiManager = GameObject.Find("Canvas").GetComponent <UiManager>();

        if (_uiManager != null)
        {
            _uiManager.updateLife(_health);
        }

        _audioSource = GetComponent <AudioSource>();
    }
Пример #10
0
        public static void ShowBioLanguagesPopup()
        {
            UserInfoExtensionsMod.HideAllPopups();

            if (userLanguages == null || userLanguages.Count == 0)
            {
                UiManager.OpenSmallPopup("Notice:", "This user has no bio languages", "Close", new Action(UiManager.ClosePopup));
            }
            else
            {
                VRCUiManager.prop_VRCUiManager_0.Method_Public_Void_String_Boolean_0("UserInterface/MenuContent/Popups/BioLanguagesPopup");
            }
        }
Пример #11
0
        private void button_tile_Clicked(Button sender)
        {
            UiManager.DisposeAllComponents <TileSpawnWindow>(); //Remove old ones.

            var tileSpawnPanel = new TileSpawnWindow(new Vector2i(350, 410));

            UiManager.AddComponent(tileSpawnPanel);
            tileSpawnPanel.DoLayout();

            // hide me
            Visible = !Visible;
            UiManager.RemoveFocus(this);
        }
Пример #12
0
    void Awake()
    {
        Debug.Assert(!Instance);

        Instance = this;

        playButton.onClick.AddListener(this.OnPlayButton);
        exitButton.onClick.AddListener(this.OnEndButton);

        UpdatePoints(GameManager.Instance.GetNumBananas());

        ShowInGame(false);
    }
Пример #13
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);

            DontDestroyOnLoad(gameObject);
        }
    }
Пример #14
0
        private void Window_Initialized(object sender, EventArgs e)
        {
            CultureInfo.DefaultThreadCurrentCulture   = new CultureInfo("en-US");
            CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("en-US");
            if (!Directory.Exists("data") || !File.Exists("sqlite3.dll"))
            {
                MessageBox.Show(Debugger.IsAttached ? @"""data"" folder and/or sqlite3.dll not found. Make sure to copy the data folder and sqlite3.dll to the output directory." : "Some files are missing, please reinstall.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                Environment.Exit(-1);
            }

            if (!Debugger.IsAttached)
            {
                AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            }
            _uiManager = new UiManager();

            LoadExtensionDependencies();

            List <Assembly> assemblies = LoadExtensions();

            _extensionManager = new ExtensionManager(_uiManager, Dispatcher, ConfigDir, new FinalesFunkelnExtension());
            _extensionManager.AddAssemblies(assemblies);
            _extensionManager.InitExtensions();

            foreach (var x in _extensionManager.Extensions)
            {
                var item = new ExtensionMenuItem(x.Value);
                item.Views.AddRange(_uiManager.GetViewsByExtension(x.Value));
                ViewsMenuItem.Items.Add(item);
            }

            DockingManager.Layout.RootPanel = new LayoutPanel(_mainPane = new LayoutDocumentPane());


            foreach (var view in _uiManager.GetViews())
            {
                LayoutContent c = new DocumentViewControl(view);
                _mainPane.Children.Add(c);
            }

#if AIRDEBUG && DEBUG
            _processInjector = new ProcessInjector("adl");//AirDebugLauncher
#else
            _processInjector = new ProcessInjector("lolclient");
#endif

            _processInjector.Injected      += pi_Injected;
            _processInjector.ProcessFound  += ProcessInjector_ProcessFound;
            _processInjector.ProcessExited += _processInjector_ProcessExited;
            _processInjector.Start();
        }
Пример #15
0
    private void Awake()
    {
        Instance = null;
        if (Instance == null)
        {
            Instance = this;
        }
        else if (Instance != null)
        {
            Destroy(this);
        }

        DontDestroyOnLoad(this);
    }
Пример #16
0
    protected void InitManager()
    {
        Instance                  = this;
        m_EndTurn                 = GameObject.Find("Canvas/PlayerUi/EndTurnButton").GetComponent <Button> ();
        m_EnemyLifeBarParent      = GameObject.Find("Canvas/EnemyLifeBar").transform;
        m_CanvasParent            = GameObject.Find("Canvas").transform;
        m_WeaponButtonParent      = GameObject.Find("Canvas/PlayerUi/WeaponButtons").transform;
        m_WeaponDescriptionParent = GameObject.Find("Canvas/PlayerUi").transform;

        m_ActorUiBarPrefab        = Resources.Load("Prefab/Ui/ActorUiBar") as GameObject;
        m_FloatingDisplayPrefab   = Resources.Load("Prefab/Ui/FloatingDisplay") as GameObject;
        m_WeaponButtonPrefab      = Resources.Load("Prefab/Ui/WeaponButton") as GameObject;
        m_WeaponDescriptionPrefab = Resources.Load("Prefab/Ui/WeaponDescription") as GameObject;
    }
Пример #17
0
        public static void GameInitialization()
        {
            log4net.Config.XmlConfigurator.Configure();

            ApplicationSettings = ReloadApplicationSettings();

            Game = new GameManager();

            GameUiManager = new UiManager();

            GameUiManager.Initialization();

            Game.Initialization(GameUiManager);
        }
Пример #18
0
 public static void MovePlayerList()
 {
     MenuManager.playerListRect.anchoredPosition = PlayerListConfig.playerListPosition.Value; // So old position var works properly
     shouldMove = true;
     MelonCoroutines.Start(WaitForPress(MenuManager.playerList, new Action <GameObject>((gameObject) =>
     {
         PlayerListConfig.playerListPosition.Value = MenuManager.playerListRect.anchoredPosition;
         gameObject.SetActive(!MenuManager.shouldStayHidden);
         UiManager.OpenSubMenu(MenuManager.playerListMenus[1].Path);
         MenuManager.playerListRect.localPosition = MenuManager.playerListRect.localPosition.SetZ(25);
     })));
     UiManager.OpenSubMenu("UserInterface/QuickMenu/ShortcutMenu");
     MenuManager.playerList.SetActive(true);
 }
Пример #19
0
    public void UpdateUpgrade() //업그레이드 비용 증가
    {
        //ui갱신
        goldByUpgrade = startGoldByUpgrade * (int)Mathf.Pow(upgradePow, DataController.Instance.level);
        float a = (float)(startCurrentCost * Mathf.Pow(costPow, DataController.Instance.level))
                  * (long)BlessingExchange.Instance.blessing_gold_cost_ratio[PlayerPrefs.GetInt("bls_5")];

        DataController.Instance.currentCost = (long)a;

        UiManager.Instance.goldDisplayer.text         = UiManager.ToStringKR(DataController.Instance.gold) + "원";
        UiManager.Instance.goldPerClickDisplayer.text = "터치골드획득 : " + UiManager.ToStringKR(DataController.Instance.goldPerClick);
        UiManager.Instance.upgradeDisplayer.text      = "강화비용 " + UiManager.ToStringKR(DataController.Instance.currentCost);
        UiManager.Instance.GoldLevelDisplayer.text    = "레벨  " + DataController.Instance.level + "   X" + UiManager.ToStringKR(DataController.Instance.besu);
    }
Пример #20
0
        static void Main(string[] args)
        {
            _game              = new Game("tank", 1280, 720);
            _game.Color        = Color.White;
            _game.MouseVisible = true;

            //show a menu
            UiManager uiManager = new UiManager();

            //ui manager needs fully qualified path to the enum the menu is based on
            uiManager.ShowListMenu("gamemode?", "tank.Code.GameModes", OnSelectionCallback);
            uiManager.ShowToast("use arrow and enter\nkeys to navigate!", 3000);
            _game.Start(uiManager.Scene);
        }
Пример #21
0
    // Use this for initialization
    void Start()
    {
        entity = null;

        skill = null;
        bag   = null;
        UiManager.uiManager = this;
        ShowCondition();
        ShowPropety();
        ShowTips();
        ShowTurn();
        tips.SetActive(false);
        propety.SetActive(false);
    }
Пример #22
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else
        {
            Destroy(gameObject);
        }

        StartCoroutine(loadUi());
    }
Пример #23
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
     SceneManager.sceneLoaded += Carrega;
     PegarDadosUI();
 }
Пример #24
0
    // Update is called once per frame
    void Update()
    {
        Move();
        Rotate();
        PrimaryShoot();
        SpecialShoot();
        Dash();

        CheckExpiredStatus();


        currentMana = Mathf.Min(maxMana, currentMana + manaRegen * Time.deltaTime);
        UiManager.Instance().UpdateMana(1.0f * currentMana / maxMana);
    }
Пример #25
0
    private void InitializeLevel()
    {
        player = FindObjectOfType <PlayerManager>();
        player.transform.position = startCheckpoint.transform.position;
        audioManager = FindObjectOfType <AudioManager>();
        uiManager    = FindObjectOfType <UiManager>();
        cameraFollow = FindObjectOfType <CameraFollow>();

        //player.fuelSlider = uiManager.fuelSlider;

        cameraFollow.Player = player.gameObject.GetComponent <PlayerController>();
        cameraFollow.gameObject.transform.position = startCheckpoint.transform.position;
        audioManager.playerManager = player;
    }
Пример #26
0
        private void Awake()
        {
            _uiManager = UiManager.Instance;
            _uiManager.RegisterWindow(WindowReference.Chest, gameObject);
            gameObject.SetActive(false);

            Save save = SaveManager.Instance.GetCurrentSave;

            if (save == null || string.IsNullOrEmpty(save.ChestInventory))
            {
                return;
            }

            if (!ItemManager.TryJsonToItemStacks(save.ChestInventory, out ItemStack[] stacks))
Пример #27
0
        private static void OnUserFetched(APIUser user)
        {
            if (isFromSocialPage && user.id == VRCUtils.ActiveUserInUserInfoMenu.id)
            {
                UiManager.OpenSmallPopup("Notice:", "You are already viewing the avatar author", "Close", new Action(UiManager.ClosePopup));
                return;
            }

            UiManager.OpenUserInUserInfoPage(user);
            if (isFromSocialPage)
            {
                isFromSocialPage = false;
            }
        }
Пример #28
0
    void Start()
    {
        score               = 0;
        thrusterFuel        = 100;
        fuelRecharging      = false;
        shieldStrength      = 0;
        thrustersOnCd       = false;
        stdAmmoCount        = 15;
        cameraShakeDuration = 0;
        screenShakeAllowed  = PlayerPrefs.GetInt("ScreenShakeOn");

        gameCamera = GameObject.Find("Main Camera").GetComponent <Transform> ();
        if (gameCamera == null)
        {
            Debug.LogError("Cannot find camera!");
        }
        cameraStartPos = gameCamera.position;
        gameManager    = GameObject.Find("GameManager").GetComponent <GameManager> ();
        if (gameManager == null)
        {
            Debug.LogError("Game Manager is NULL");
        }

        spawnManager = GameObject.Find("SpawnManager").GetComponent <SpawnManager> ();
        if (spawnManager == null)
        {
            Debug.LogError("Spawn Manager Not Found!!");
        }

        uiManager = GameObject.Find("UiManager").GetComponent <UiManager> ();
        if (uiManager == null)
        {
            Debug.LogError("Ui Manager Not Found!!");
        }

        uiManager.UpdateLivesImage(lives);

        laserPools = GameObject.Find("LaserPools").GetComponent <LaserPools> ();
        if (laserPools == null)
        {
            Debug.LogError("Laser Pools Not Found!!");
        }

        transform.position = new Vector3(0, -3.5f, 0);
        shieldRenderer     = playerShield.GetComponent <SpriteRenderer> ();
        shieldLevel3       = new Color(1, 1, 1, 1);
        shieldLevel2       = new Color(0.6f, 0.6f, 0.6f, 1);
        shieldLevel1       = new Color(0.3f, 0.3f, 0.3f, 1);
    }
Пример #29
0
 public void Awake()
 {
     if (get == null)
     {
         get = this;
     }
     else
     {
         if (get != this)
         {
             Destroy(this);
         }
     }
     primaryResourceTxt = GameObject.Find("TXT_PrimaryResource").GetComponent<Text>();
 }
Пример #30
0
 void Start()
 {
     transform.position = new Vector3(0, 0, 0);
     _spawnManager      = GameObject.Find("Spawn Manager").GetComponent <SpawnManager>();
     _uiManager         = GameObject.Find("Canvas").GetComponent <UiManager>();
     //_shieldChild = gameObject.transform.Find("Shield").gameObject;
     if (_spawnManager == null)
     {
         Debug.Log("Null Spawn Manager");
     }
     if (_uiManager == null)
     {
         Debug.Log("Null UiManager");
     }
 }
Пример #31
0
    public override void HitTarget(GameObject target)
    {
        Collider2D[] collidersHit = Physics2D.OverlapCircleAll(transform.position, explosionRadius, layerMask);

        foreach (Collider2D collider in collidersHit)
        {
            if (collider.CompareTag(targetTag))
            {
                collider.gameObject.SendMessage("GetDamage", damageAmount);
            }
        }
        UiManager.Instance().MakeExplosion(transform.position, 200, Color.yellow, speedMultiplier: 4f);
        PlayDestroySound();
        Destroy(gameObject);
    }
Пример #32
0
        public MainPage()
        {
            InitializeComponent();

            // Create the UiManager to coordinate popup UI
            UiManager = UiManager.Create(Dispatcher, _notification);

            // Set this MainPage as the IPageService provider for the IAppService for this dispatcher.
            ((AppService)AppService).SetPageService(this);

            SubscribeToEvents();

            // Load default page icon
            UpdateDefaultPageIcon(App.Settings.AppDefaultPage);
        }
Пример #33
0
        private void OpenWindow()
        {
            var window = new GmWindow(new Vector2f(_random.Next(500), _random.Next(500)), new Vector2f(500, 400));

            UiManager.Add(window);

            var button1 = new Button(new Vector2f(50, 50), new Vector2f(60, 40));

            window.Add(button1);
            button1.onClick += new EventHandler((s, e) =>
            {
                Console.WriteLine("Btn prssd");
                window.Close();
            });
        }
Пример #34
0
    public void play()
    {
        walkPhase        = true;
        attackPhase      = false;
        playing          = true;
        waitingForSpells = false;

        UiManager.changeAlpha(spellPointsUi, true, 0.5f);
        UiManager.changeAlpha(mvmtPointsUi, true, 1f);
        uiManager.GetComponent <UiManager>().changeAlphaSpells(0.5f);
        updateHealth();
        updateMana();
        updateMovementPoints();
        updateSpellPoints();
    }
        public void Init(ExtensionManager extensionManager, UiManager uiManager, Dispatcher dispatcher)
        {
            uiManager.RegisterView(this, new View(this, "Output", "FinalesFunkeln:Output", _textBox));
            uiManager.RegisterView(this, new View(this, "Packets", "FinalesFunkeln:PacketOverview", _packetUi));
            uiManager.RegisterView(this, new View(this, "Status", "FinalesFunkeln:ClientStatus", _clientStatus));
            uiManager.RegisterView(this, new View(this, "Certificates", "FinalesFunkeln:Certificates", _certList));
            _dispatcher = dispatcher;

            extensionManager.AcknowledgeMessageReceived += pm_AcknowledgeMessageReceived;
            extensionManager.AsyncMessageReceived += pm_AsyncMessageReceived;
            extensionManager.ErrorMessageReceived += pm_ErrorMessageReceived;
            extensionManager.LolClientInjected += pm_LolClientInjected;
            extensionManager.LolClientConnected += pm_LolClientConnected;
            extensionManager.LolClientDisconnected += pm_LolClientDisconnected;
            extensionManager.LolClientClosed += pm_LolClientClosed;
        }
Пример #36
0
        public void Convert(MainWindow window, UiManager uiManager)
        {
            window.Left = WindowX;
            window.Top = WindowY;
            window.Width = WindowWidth;
            window.Height = WindowHeight;

            window.WindowState = Maximized ? WindowState.Maximized : WindowState.Normal;
            
            window.DockingManager.Layout = (LayoutRoot)Layout.Convert(uiManager);
            foreach (var x in FloatingWindows)
            {
                var fwin = (LayoutFloatingWindow) x.Convert(uiManager);
                if(fwin!=null)
                    window.DockingManager.Layout.FloatingWindows.Add(fwin);
            }
        }
Пример #37
0
    public static UiManager Instance()
    {
        if (_instance == null)
        {
            _instance = (UiManager)FindObjectOfType(typeof(UiManager));

            if (_instance == null)
            {
                GameObject singleton = new GameObject();
                _instance = singleton.AddComponent<UiManager>();
                singleton.name = "UiManagerContainer" + typeof(UiManager).ToString();

                DontDestroyOnLoad(singleton);
            }
        }

        return _instance;
    }
Пример #38
0
 // Use this for initialization
 void Start()
 {
     uiM = GetComponent<UiManager>();
 }
Пример #39
0
 // Called when script is loaded.
 void Awake()
 {
     uiManager = GameObject.FindGameObjectWithTag("Ui").GetComponent<UiManager>();
 }
Пример #40
0
 internal override LayoutElement Convert(UiManager uiManager)
 {
     var lr = new LayoutDocumentPaneGroup
     {
         DockWidth = new GridLength(Width.Value, Width.Unit),
         DockHeight = new GridLength(Height.Value, Height.Unit),
         Orientation = Orientation
     };
     foreach (var x in Children)
     {
         if (x is LayoutInfo)
             lr.Children.Add((ILayoutDocumentPane)((LayoutInfo)x).Convert(uiManager));
         else if (x is PaneInfo)
             lr.Children.Add((ILayoutDocumentPane)((PaneInfo)x).Convert(uiManager));
         else
             throw new Exception();
         
     }
     return lr;
 }
Пример #41
0
 internal override LayoutElement Convert(UiManager uiManager)
 {
     var win=new LayoutDocumentFloatingWindow();
     var view = View.Convert(uiManager);
     if (view != null)
         win.RootDocument = new DocumentViewControl(view);
     else return null;
     win.RootDocument.FloatingLeft = X;
     win.RootDocument.FloatingTop = Y;
     win.RootDocument.FloatingWidth = Width;
     win.RootDocument.FloatingHeight = Height;
     win.RootDocument.IsMaximized = IsMaximized;
     return win;
 }
Пример #42
0
 abstract internal LayoutElement Convert(UiManager uiManager);
Пример #43
0
 // Called when script is loaded.
 void Awake()
 {
     compass = gameObject.GetComponent<Compass>();
     uiManager = GameObject.FindGameObjectWithTag("Ui").GetComponent<UiManager>();
 }
Пример #44
0
 public void reportGameUi(UiManager passedGameUi)
 {
     uiManager = passedGameUi;
 }
Пример #45
0
    void Awake()
    {
        if (instance == null)
            instance = this;
        else if (instance != this)
            Destroy(gameObject);

        // Init levels array and fill it
        levels = new string[4];
        levels[0] = "Pzp_Level1_3";
        levels[1] = "Pzp_Level2_2";
        levels[2] = "Pzp_Level3_1";
        levels[3] = "Pzp_Level4_1";

        // Determine shots per level
        shotsPerLevel = new int[4];
        shotsPerLevel[0] = 7;
        shotsPerLevel[1] = 8;
        shotsPerLevel[2] = 9;
        shotsPerLevel[3] = 5;

        //Debug.Log ("Game Manager Ready");
        balls = new List<Ball_Generic>();

        // Don't accept mouse input for shots yet
        isShotAwaiting = false;

        // Identify Ui Manager
        uiManager = GameObject.Find("UiManager").GetComponent<UiManager>();
        uiManager.init ();

        // Set all levels as "not won"
        lastLevelWon = 0;
    }
Пример #46
0
 internal override LayoutElement Convert(UiManager uiManager)
 {
     var lr = new LayoutRoot {RootPanel = (LayoutPanel) Center.Convert(uiManager)};
     return lr;
 }
Пример #47
0
    // Update is called once per frame
    void Update()
    {
        if (GameObject.Find("UiManager(Clone)"))
        {

            uim = GameObject.Find("UiManager(Clone)").GetComponent<UiManager>();
            active = true;
        }

        hpBars = unit.GetComponent<AttributeComponent>().hp;
    }
Пример #48
0
 public View Convert(UiManager uiManager)
 {
     return uiManager.HasView(InternalName) ? uiManager.GetView(InternalName) : null;
 }
	IEnumerator Start () 
	{

		presets = new Dictionary<SoundName,SoundPreset> ();
		presets.Add (SoundName.WN_20_40Hz,		new SoundPreset (20, 	40));
		presets.Add (SoundName.WN_40_80Hz, 		new SoundPreset (40, 	80));
		presets.Add (SoundName.WN_80_160Hz,		new SoundPreset (80, 	160));
		presets.Add (SoundName.WN_160_315Hz,	new SoundPreset (160, 	315));
		presets.Add (SoundName.WN_315_630Hz,	new SoundPreset (315,	630));
		presets.Add (SoundName.WN_630_1250Hz,	new SoundPreset (630, 	1250));
		presets.Add (SoundName.WN_1250_2500Hz,	new SoundPreset (1250,	2500));
		presets.Add (SoundName.WN_2500_5kHz,	new SoundPreset (2500,	5000));
		presets.Add (SoundName.WN_5k_10kHz, 	new SoundPreset (5000,	10000));
		presets.Add (SoundName.WN_10k_20kHz,	new SoundPreset (10000,	20000));
		presets.Add (SoundName.WN_20k_40kHz,	new SoundPreset (20000,	40000));
		presets.Add (SoundName.VOICE,			new SoundPreset (100,	400));

		var tmp = GetComponentsInChildren<AudioLowPassFilter> ();
		lowPassFilters = new List<AudioLowPassFilter> (tmp);

		camera = FindObjectOfType<Camera> ().transform;
		player = camera.parent;

		ui = FindObjectOfType<UiManager> ();
		if (ui != null) {
			while(!ui.isStart){
				yield return null;
			}
		}

		SetClip ();

		if (isSimulation) {
			FindObjectOfType<TestManager> ().gameObject.SetActive (false);
			Play (0);
			player.position = Vector3.back * 3;
			StartCoroutine (anim ());
			isItd = false;
		} else {
			SimulationSpeaker.gameObject.SetActive (false);
		}

	}
Пример #50
0
 internal override LayoutElement Convert(UiManager uiManager)
 {
     var doc = new LayoutDocumentPane
     {
         DockWidth = new GridLength(Width.Value, Width.Unit),
         DockHeight = new GridLength(Height.Value, Height.Unit)
     };
     foreach (var x in Content)
     {
         var v = x.Convert(uiManager);
         if(v!=null)
             doc.Children.Add(new DocumentViewControl(v));
     }
     return doc;
 }