Inheritance: MonoBehaviour
Exemplo n.º 1
0
    void OnMouseDown()
    {
        if (gameObject.name == "SeaIcon")
        {
            //.Instantiate(aaa);
            //GameObject clone=Instantiate(Building, Building.transform.position, Building.transform.rotation) as GameObject;
            Vector3 tmp = Camera.main.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 0));
            tmp.z = Sea.transform.position.z;
            clone = Instantiate(Sea, tmp, Sea.transform.rotation) as GameObject;
        }

        if (gameObject.name == "NatureIcon")
        {
            //.Instantiate(aaa);
            //GameObject clone=Instantiate(Building, Building.transform.position, Building.transform.rotation) as GameObject;
            Vector3 tmp = Camera.main.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 0));
            tmp.z = Nature.transform.position.z;
            clone = Instantiate(Nature, tmp, Nature.transform.rotation) as GameObject;
        }

        if (gameObject.name == "ElectricIcon")
        {
            //.Instantiate(aaa);
            //GameObject clone=Instantiate(Building, Building.transform.position, Building.transform.rotation) as GameObject;
            Vector3 tmp = Camera.main.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 0));
            tmp.z = Electric.transform.position.z;
            clone = Instantiate(Electric, tmp, Electric.transform.rotation) as GameObject;
        }
        GameObject    other         = GameObject.Find("GUIController");
        GuiController guiController = other.GetComponent("GuiController") as GuiController;

        guiController.CloseAll();
    }
Exemplo n.º 2
0
        public void AlarmRequested(int hour, int minute, bool repeat, string audioFile, bool weekly, List <DayOfWeek> days)
        {
            Alarm newAlarm = new Alarm(hour, minute, repeat, audioFile, weekly, days);

            GuiController.GetController().AddAlarm(newAlarm);
            alarmList.Add(newAlarm);
        }
Exemplo n.º 3
0
        private GuiController SetupNametag(string name, GameObject displayObject)
        {
            GuiController nametag       = new GuiController(GameFacade.Instance.RetrieveMediator <RuntimeGuiManager>(), NAMETAG_GUI_PATH);
            Transform     headTransform = GameObjectUtility.GetNamedChildRecursive("Head", displayObject).transform;

            nametag.Manager.SetTopLevelPosition
            (
                nametag.MainGui,
                new FollowWorldSpaceObject
                (
                    GameFacade.Instance.RetrieveMediator <FashionCameraMediator>().Camera,
                    headTransform,
                    GuiAnchor.CenterCenter,
                    Vector2.zero,
                    new Vector3(0.0f, 0.3f, 0.0f)                     // TODO: Hard coded value
                )
            );
            ITextGuiElement nameElement = nametag.MainGui.SelectSingleElement <ITextGuiElement>("**/NameLabel");

            nameElement.Text = String.Format(nameElement.Text, name);

            nametag.MainGui.Showing = false;

            return(nametag);
        }
Exemplo n.º 4
0
    private void LoadGuis()
    {
        mGuiBuilder = new GuiController(mManager, GUI_PATH);
        foreach (ITopLevel topLevel in mGuiBuilder.AllGuis)
        {
            switch (topLevel.Name)
            {
            case "LoadGuiDialog":
                SetupLoadGuiDialog(topLevel);
                break;

            case "ToolbarWindow":
                SetupToolbar(topLevel);
                break;

            case "GuiFileErrorWindow":
                SetupFileErrorWindow(topLevel);
                break;

            case "OpenWindowsList":
                SetupOpenWindowsList(topLevel);
                break;
            }
        }
    }
Exemplo n.º 5
0
    public void AddAmmunition(Bullet.BULLET_TYPE bulletType, int amount)
    {
        Inventory inv = Inventory.GetInstance();

        inv.bullets[bulletType] += amount;
        GuiController.GetInstance().RefreshBulletCount(activeGun.currentClip, inv.bullets[bulletType]);
    }
Exemplo n.º 6
0
        public void ItemSelected(string e)
        {
            GuiController.SLog("Item selected()");
            if (e == "..")
            {
                currentDir  = currentDir.Parent;
                currentPath = currentDir != null ? currentDir.FullName : ".";
            }
            else
            {
                currentPath = e;
                currentDir  = new DirectoryInfo(currentPath);
            }

            label.SetText(currentPath);

            try
            {
                var items = GetSubDirsAsMenuItems();
                pagedMenu.SetItems(items);
            }
            catch (Exception ex)
            {
                Messenger.Post("This is bad: " + ex.Message);
            }
        }
Exemplo n.º 7
0
    // Update is called once per frame
    void LateUpdate()
    {
        if (Input.GetKeyDown(KeyCode.O))
        {
            GameManager.GetInstance().LevelComplete();
        }
        if (Input.GetKeyDown(KeyCode.I))
        {
            GuiController.GetInstance().ShowFantasyBounceInText("You Died!", 3F);
        }


        if (((Input.GetKeyDown(KeyCode.LeftArrow) && lastDirectionX == -1) || (Input.GetKeyDown(KeyCode.RightArrow) && lastDirectionX == 1)))
        {
            // double direction, check for time between
            if (timeLastDirectionX != -1 && Time.timeSinceLevelLoad - timeLastDirectionX <= timeDoubleDash)
            {
                isDashing = true;
                return;
            }
            timeLastDirectionX = Time.timeSinceLevelLoad;
        }
        isDashing = false;
        if (GetDirectionX() != 0)
        {
            lastDirectionX     = GetDirectionX();
            timeLastDirectionX = Time.timeSinceLevelLoad;
        }

        CheckLookAhead();

        CheckWarcry();
    }
Exemplo n.º 8
0
        static void Main(string[] args)
        {
            Console.CursorVisible = false;
            GuiController guiController = new GuiController();

            guiController.ShowMenu();
        }
Exemplo n.º 9
0
    public void UpdateSize()
    {
        // Refresh Gui positions
        GuiController.GetInstance().RefreshPositions();

        // Refresh Shredders
        Shredder[] shredderList = GameObject.FindObjectsOfType <Shredder>();
        foreach (Shredder shredder in shredderList)
        {
            shredder.RefreshPosition();
        }

        // Refresh Spawners
        Spawner[] spawnerList = GameObject.FindObjectsOfType <Spawner>();
        foreach (Spawner spawner in spawnerList)
        {
            spawner.RefreshPosition();
        }

        // Refresh Shoot Buttons
        ShootButtonController[] shootButtons = GameObject.FindObjectsOfType <ShootButtonController>();
        Debug.Log("Found Shoot btns: " + shootButtons);
        foreach (ShootButtonController shootButtonImage in shootButtons)
        {
            shootButtonImage.RefreshPosition();
        }

        // Refresh Reload Buttons
        ReloadGameTapButton[] reloadButtons = GameObject.FindObjectsOfType <ReloadGameTapButton>();
        foreach (ReloadGameTapButton reloadButton in reloadButtons)
        {
            reloadButton.RefreshPosition();
        }
    }
Exemplo n.º 10
0
    public bool FireGun(int directionX, bool topPosition)
    {
        if (PullTriggerReady())
        {
            lastShot = Time.time;

            if (HasAmmunition())
            {
                SoundManager.PlaySFX(gunStruct.gunShotSound);
                Bullet newBullet = Instantiate(gunStruct.bullet, muzzlePosition.position, muzzlePosition.rotation);
                newBullet.InitBullet(gunStruct.bulletSpeed, gunStruct.damageModifier, directionX);
                newBullet.transform.parent = EffectParent.GetInstance().transform;


                // Create empty shell
                ThrowShell(directionX, topPosition);

                // remove bullet from clip
                currentClip--;
                // remove bullet from inventory
                //Inventory.instance.bullets[gunStruct.bullet.bulletType]--;

                GuiController.GetInstance().RefreshBulletCount(currentClip, Inventory.GetInstance().bullets[gunStruct.bullet.bulletType]);
                return(true);
            }
            else
            {
                SoundManager.PlaySFX(gunStruct.gunEmptySound);
                return(false);
            }
        }
        return(false);
    }
Exemplo n.º 11
0
    public void ReloadFinished()
    {
        // get bullets from inventory
        int bulletsInInventory = Inventory.GetInstance().bullets[gunStruct.bullet.bulletType];
        int remainingBullet    = 0;

        if (currentClip > 0)
        {
            //Reload with bullet in chamber
            remainingBullet = currentClip;
        }
        if (bulletsInInventory >= gunStruct.clipSize)
        {
            currentClip = gunStruct.clipSize; // Full Clip reload
            Inventory.GetInstance().bullets[gunStruct.bullet.bulletType] = bulletsInInventory - (currentClip - remainingBullet);
        }
        else
        {
            currentClip += bulletsInInventory; // not enough bullets for full clip
            Inventory.GetInstance().bullets[gunStruct.bullet.bulletType] = 0;
        }

        GuiController.GetInstance().RefreshBulletCount(currentClip, Inventory.GetInstance().bullets[gunStruct.bullet.bulletType]);
        reloading = false;
        ShowClipEmptyLayer(false);
    }
Exemplo n.º 12
0
    // Use this for initialization
    void Start()
    {
        InitEvents();
        // initialize patient
        p1 = new Patient("Joe Bruin", 19836220, 1959, 08, 05, 'M', p1_events);

        DateTime temp = new DateTime(2020, 12, 31);

        Debug.Log(p1.GetInfo());
        Debug.Log(p1.GetEventsUpTo(temp)[14].GetInfo());
        DisplayOrbs();


        leapController = GameObject.Find("LeapHandController");
        listener       = GameObject.Find("LeapListener").GetComponent <LeapListener>();
        mainObject     = GameObject.Find("patient");
        gController    = GameObject.Find("GUIController").GetComponent <GuiController>();
        camera         = GameObject.Find("Main Camera").GetComponent <Camera>();


        // Verify that objects have been found
        if (listener != null)
        {
            Debug.Log("Listener: LISTENING");
        }
        if (mainObject != null)
        {
            Debug.Log("mainObject: IDENTIFIED");
        }


        camera           = GameObject.Find("Main Camera").GetComponent <Camera>();
        cameraController = GameObject.Find("Main Camera").GetComponent <CameraController>();
        currentGameState = gameState.FULL_BODY_VIEW;
    }
Exemplo n.º 13
0
        static void Main(string[] args)
        {
            //grid X => 0 - 9, y => 0 - 21
            Utils.DisableConsoleQuickEdit.Go();//cia tam kad pele negalima butu statyti zemeklio
            Console.OutputEncoding = System.Text.Encoding.UTF8;
            Console.CursorVisible  = false;

            GuiController guiController = new GuiController(0, 0, 120, 30, '░');

            guiController.ShowMenu();



            /*Console.SetCursorPosition(5, 16);
             *
             * Console.WriteLine("■■■");
             *
             * Console.SetCursorPosition(5, 17);
             *
             * Console.WriteLine("■");*/

            /*Console.WriteLine("Test");
             *
             *
             * Console.SetCursorPosition(0, 21);
             *
             * Console.WriteLine("■■■■■■■■■■");
             *
             * Console.ReadKey();*/
        }
Exemplo n.º 14
0
    void Start()
    {
        _bt = GetComponentInParent <TestBaseTower>();
        _gc = FindObjectOfType <GuiController>();

        _gc.StatBarUpdates += SetTowerGui;
    }
Exemplo n.º 15
0
        private void ShowCartridgeInformation(string code)
        {
            CartridgeInfo cartridgeInfo = DatabaseHelper.GetCartridgeInfo(code);

            if (cartridgeInfo == null)
            {
                GuiController.CreateMessage("Картридж с таким номером не найден", true);
                return;
            }
            ModelBox.Text     = cartridgeInfo.ModelName;
            LocationBox.Text  = cartridgeInfo.Location;
            InitiatorBox.Text = cartridgeInfo.InitiatorLastName;
            DataBox.Text      = cartridgeInfo.TransferDate.ToString("dd.MM.yyyy");
            StateBox.Text     = cartridgeInfo.State;

            List <ListViewItem> items = new List <ListViewItem>();

            foreach (ServiceOperation operation in cartridgeInfo.Operations)
            {
                ListViewItem item = new ListViewItem(operation.OperationDate.ToString("dd.MM.yyyy"));
                item.SubItems.Add(operation.OperationType);
                item.SubItems.Add(operation.PartName);
                item.SubItems.Add(operation.PartsCount.ToString());
                item.SubItems.Add(operation.WorkerLastName);
                item.SubItems.Add(operation.Comment);
                items.Add(item);
            }
            OpertionsBox.Items.AddRange(items.ToArray());
        }
Exemplo n.º 16
0
        /// <summary>
        /// Called when the user clicks the save button
        /// </summary>
        private void SaveAlarm_Click(object sender, RoutedEventArgs e)
        {
            //collect form info
            string name = mainControl.AddEditLabelBox.Text;

            int hour, minute;

            timeController.GetDisplayTime(out hour, out minute);

            bool repeat = mainControl.RepeatCheckbox.IsChecked.HasValue ? (bool)mainControl.RepeatCheckbox.IsChecked : false;

            List <DayOfWeek> days = weekdayControl.GetActiveDays();

            string audioFile = audioFileController.GetSelected();

            //pass to alarm GuiEventCaller
            if (alarmBeingEdited == null)
            {
                GuiEventCaller.GetCaller().NotifyAlarmRequested(hour, minute, repeat, audioFile, repeat, days, name);
            }
            else
            {
                GuiEventCaller.GetCaller().NotifyAlarmEditRequest(alarmBeingEdited, name, hour, minute, repeat, audioFile, repeat, days);
            }

            GuiController.GetController().OpenAlarmListPanel();
        }
Exemplo n.º 17
0
        /// <summary>
        /// Initializes the main controller and assigns it to the GUI controller
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();
            GuiController.SetMainWindow(this);
            //note: this should probably be moved to another class, can't be arsed right now

            this.AddAlarmButton.Click += AddAlarmButton_Click;
            this.Snooze_Button.Click  += Snooze_Button_Click;
            this.Options_Button.Click += Options_Button_Click;
            this.Dismiss_Button.Click += Dismiss_Button_Click;

            fadeTimer           = new DispatcherTimer();
            fadeTimer.IsEnabled = false;
            fadeTimer.Tick     += FadeTimer_Tick;
            fadeTimer.Interval  = new TimeSpan(0, 0, 0, 0, 50);

            fadeTheseWithTimer = new List <AlarmRow>();

            this.Snooze_Button_setHidden();
            this.Dismiss_Button_setHidden();

            this.AMPM_Analog.Visibility = Visibility.Hidden;
            this.Analog_setHidden();
            this.DateDisplay_Analog.Visibility = Visibility.Hidden;

            App.SetupMainWindow();

            Closed += MainWindow_Closed;
            //TEST CODE BELOW THIS LINE
        }
Exemplo n.º 18
0
        static void Main()
        {
            Console.CursorVisible = false;

            GuiController  guiController = new GuiController();
            GameController myGame        = new GameController();

            do
            {
                if (guiController.ShowMenu())
                {
                    myGame.StartGame();
                }
                else
                {
                    break;
                }
            }while (guiController.ShowMenu() == true);

            ExitWindow exitWindow = new ExitWindow();

            exitWindow.Render();
            // GameWindow gameWindow = new GameWindow();
            // gameWindow.Render();
            ///CreditWindow creditWindow = new CreditWindow();
            // creditWindow.Render();
        }
Exemplo n.º 19
0
    void OnMouseDown()
    {
        if (gameObject.name == "FlowerBoxIcon")
        {
            //.Instantiate(aaa);
            //GameObject clone=Instantiate(Building, Building.transform.position, Building.transform.rotation) as GameObject;
            Vector3 tmp = Camera.main.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 0));
            tmp.z = FlowerBox.transform.position.z;
            clone = Instantiate(FlowerBox, tmp, FlowerBox.transform.rotation) as GameObject;
        }

        if (gameObject.name == "FlowerIcon")
        {
            //.Instantiate(aaa);
            //GameObject clone=Instantiate(Building, Building.transform.position, Building.transform.rotation) as GameObject;
            Vector3 tmp = Camera.main.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 0));
            tmp.z = Flower.transform.position.z;
            clone = Instantiate(Flower, tmp, Flower.transform.rotation) as GameObject;
        }

        if (gameObject.name == "SwimmingHoleIcon")
        {
            //.Instantiate(aaa);
            //GameObject clone=Instantiate(Building, Building.transform.position, Building.transform.rotation) as GameObject;
            Vector3 tmp = Camera.main.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 0));
            tmp.z = SwimmingHoleIcon.transform.position.z;
            clone = Instantiate(SwimmingHoleIcon, tmp, SwimmingHoleIcon.transform.rotation) as GameObject;
        }
        GameObject    other         = GameObject.Find("GUIController");
        GuiController guiController = other.GetComponent("GuiController") as GuiController;

        guiController.CloseAll();
    }
Exemplo n.º 20
0
        /// <summary>
        /// Загружает контент главной страницы
        /// </summary>
        public void LoadMainPage()
        {
            ContentLayoutPanel.Controls.Clear();

            GuiController.ControlCallback callback = delegate(string code) {
                ContentLayoutPanel.Controls.Clear();
                LinearButton sender = (LinearButton)GuiController.GetAssociatedControl(code);
                LoadContentPage?.Invoke(this, sender.GetCustomData <char[]>());
            };

            List <LinearButton> buttons = new List <LinearButton>();
            int index = 0;

            foreach (char[] words in alphabet)
            {
                LinearButton button = new LinearButton();
                button.ButtonText = string.Join("", words).ToUpper();

                button.Barcode         = button.RegisterControl(callback);
                button.ButtonBackColor = Color.DarkSeaGreen;
                button.Anchor          = AnchorStyles.Left | AnchorStyles.Top;
                button.CompactMode     = true;
                button.FontSize        = 9.25F;
                button.TabIndex        = index;
                button.Margin          = new Padding(0, 0, ContentMargins, ContentMargins);

                button.SetCustomData(alphabet[index]);

                buttons.Add(button);
                index++;
            }
            ContentLayoutPanel.Controls.AddRange(buttons.ToArray());
        }
Exemplo n.º 21
0
    static void Main(string[] args)
    {
        Console.CursorVisible  = false;
        Console.OutputEncoding = Encoding.UTF8;
        Console.Title          = "* SNOWFLAKE INVADERS - Dodge them all! *";

        SoundManager.LoadMusic(@"\Music\M.O.O.N. - 'Hydrogen'.wav");

        try
        {
            SafeNativeMethods.DisableConsoleResize();
            SafeNativeMethods.CenterConsole();
            SafeNativeMethods.DisableConsoleMouseClicks();

            HighScoreManager hsm = new HighScoreManager();
            hsm.CreateHighScoreFile();

            GuiController guiController = new GuiController();
            guiController.ShowMenu();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
        public void GameOver(bool WinLose)
        {
            Console.Clear();

            guiController = new GuiController();
            guiController.ShowGameOverMenu(WinLose, myGame.score);
        }
Exemplo n.º 23
0
        /// <summary>
        /// Issues a move order to all selected Actor objects
        /// </summary>
        /// <param name="eventData"></param>
        public void IssueMoveOrder(PointerEventData eventData)
        {
            GuiController.HideContextMenu();

            //this should be done diffently, but for some reason I'm getting 0,0,0 world position
            Ray        ray = Camera.main.ScreenPointToRay(Input.mousePosition);
            RaycastHit hit;

            if (Physics.Raycast(Camera.main.transform.position, ray.direction, out hit, Mathf.Infinity, 1 << LayerMask.NameToLayer("Terrain")))
            {
                foreach (NeolithicObject s in selected)
                {
                    ActorController a = s.GetComponent <ActorController>();
                    if (a)
                    {
                        BaseOrder move = new SimpleMoveOrder(a, hit.point);
                        if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift))
                        {
                            a.EnqueueOrder(move);
                        }
                        else
                        {
                            a.OverrideOrder(move);
                        }
                    }
                }
            }
        }
    // Use this for initialization
    void Start()
    {
        timesPlayed   = PlayerPrefs.GetInt("timesPlayed");
        dataCollector = FindObjectOfType <DataCollector>();
        navigator     = FindObjectOfType <Navigator>();
        player        = GameObject.FindGameObjectWithTag("Player");
        guiController = FindObjectOfType <GuiController>();

        Destination[] destinations = FindObjectsOfType <Destination>();

        routes = new List <Destination>();

        for (int i = 0; i < destinations.Length; i++)
        {
            routes.Add(destinations[i]);
        }

        DestionationSorter d = new DestionationSorter();

        routes.Sort(d.Compare);

        //enterMenu();
        enterGame();
        //enterSurvey();

        //print("Game Script: started");
    }
    private void NextWave()
    {
        waveNumber++;
        GuiController.InvokeMulti(this, guiControllers);

        StartWave();
    }
Exemplo n.º 26
0
        /// <summary>
        /// Initializes the main page
        /// </summary>
        public MainPage()
        {
            InitializeComponent();
            GuiController.GetController().assignMainPage(this);

            panelState = PanelState.Normal;

            addAlarmButton.Click   += AddEditButton_Click;
            AlarmList_Button.Click += AlarmList_Button_Click;
            Options_Button.Click   += OptionsButton_Click;

            this.AMPM_Analog.Visibility = System.Windows.Visibility.Collapsed;
            this.Analog_setHidden();
            this.date_analog.Visibility = System.Windows.Visibility.Collapsed;

            SnoozeButton  = new DarkButton(Snooze);
            DismissButton = new DarkButton(Dismiss);

            SnoozeButton.SetActiveColors(Colors.Gray, Colors.Black);
            SnoozeButton.SetIdleColors(Colors.Gray, Colors.White);

            DismissButton.SetActiveColors(Colors.Gray, Colors.Black);
            DismissButton.SetIdleColors(Colors.Gray, Colors.White);

            Snooze.Click  += Snooze_Click;
            Dismiss.Click += Dismiss_Click;

            GuiController.GetController().SetDismissAvailable(false);
            GuiController.GetController().SetSnoozeAvailable(false);
        }
Exemplo n.º 27
0
        static void Main()
        {
            Console.CursorVisible = false;
            GuiController menu = new GuiController();

            menu.ShowMenu();
        }
Exemplo n.º 28
0
        public ServiceCartridge()
        {
            InitializeComponent();

            CloseTabButton.Barcode = CloseTabButton.RegisterControl((c) => this.NavigateToMainPage());

            DateBox.Text   = DateTime.Now.ToString("dd.MM.yyyy");
            WorkerBox.Text = SessionManager.WorkerName;

            GuiController.ControlCallback SessionCallback = delegate(string code) {
                ICodeButton sender = GuiController.GetAssociatedControl(code);
                sender.Checked = !sender.Checked;
            };

            string[]        actions = DatabaseHelper.GetCartridgeActionTypes().ToArray(); // !!!!!
            List <QRButton> buttons = new List <QRButton>();
            int             index   = 0;

            foreach (string action in actions)
            {
                QRButton button = new QRButton();
                button.ButtonText      = action;
                button.Barcode         = button.RegisterControl(SessionCallback);
                button.Anchor          = AnchorStyles.Left | AnchorStyles.Top;
                button.ButtonForeColor = Color.White;
                button.ButtonFont      = new Font(FontFactory.GetFontFamilyByName("Century Gothic"), 12.25F, FontStyle.Bold);
                button.TabIndex        = index;
                button.Margin          = new Padding(0, 0, ContentMargins, ContentMargins);
                //button.SetCustomData(type);

                buttons.Add(button);
                index++;
            }
            ContentLayoutPanel.Controls.AddRange(buttons.ToArray());
        }
Exemplo n.º 29
0
    IEnumerator StartLevelCountdown()
    {
        print("----- Started StartLevelCoroutine -----");

        //	yield return new WaitForSeconds(0.01F); // To Make Level appear
        //	LevelController.Get().SetLevel(Number);

        Countdown countdown;

        countdown = GuiController.Get().BornCountdown();
        countdown.SetLevelNumName(Name);
        countdown.SetCountdown("3");
        yield return(new WaitForSeconds(1F));

        countdown.SetCountdown("2");
        yield return(new WaitForSeconds(1F));

        countdown.SetCountdown("1");
        yield return(new WaitForSeconds(1F));

        countdown.SetCountdown("GO");
        yield return(new WaitForSeconds(1F));

        countdown.KillCountdown();
        print("----- Finished StartLevelCoroutine -----");
    }
Exemplo n.º 30
0
        /// <summary>
        /// Play the ringing animation
        /// </summary>
        public void StartRinging()
        {
            ringing = true;
            GuiController.GetController().OpenAlarmListPanel();
            CellBackgroundChangeStory.Begin();

            CancelText.Content = "Dismiss";
        }
Exemplo n.º 31
0
 public void StateStart()
 {
     gui = GameObject.FindObjectOfType<GuiController>();
     gui.SetGUI(SceneStateManager.SceneState.PLAY);
 }
Exemplo n.º 32
0
			if (zout != null)
			{
				SimpleOutputForm frm = new SimpleOutputForm();
				frm.OutText = zout.text;
				frm.ShowDialog(this);