Пример #1
0
        private void OnClick()
        {
            GameSystem instance = GameSystem.Instance;

            if (instance.GameState == GameState.TipsScreen && isEnabled && manager.isActive && UICamera.currentTouchID >= -1)
            {
                StateViewTips stateViewTips = instance.GetStateObject() as StateViewTips;
                if (stateViewTips != null)
                {
                    switch (base.name)
                    {
                    case "PageLeft":
                        manager.ChangePage(-1);
                        break;

                    case "PageRight":
                        manager.ChangePage(1);
                        break;

                    case "ExitButton":
                        stateViewTips.RequestLeave();
                        instance.CanSave = true;
                        break;
                    }
                }
            }
        }
Пример #2
0
        private void OnClick()
        {
            GameSystem instance = GameSystem.Instance;

            if (instance.GameState == GameState.TipsScreen && isEnabled && manager.isActive && UICamera.currentTouchID >= -1)
            {
                StateViewTips stateViewTips = instance.GetStateObject() as StateViewTips;
                if (stateViewTips != null)
                {
                    string name = base.name;
                    if (name != null)
                    {
                        if (!(name == "PageLeft"))
                        {
                            if (!(name == "PageRight"))
                            {
                                if (name == "ExitButton")
                                {
                                    stateViewTips.RequestLeave();
                                    instance.CanSave = true;
                                }
                            }
                            else
                            {
                                manager.ChangePage(1);
                            }
                        }
                        else
                        {
                            manager.ChangePage(-1);
                        }
                    }
                }
            }
        }