Пример #1
0
        void Awake()
        {
            instance = this;

            this.moveText.pixelOffset        = new Vector2(30.0f, GlobalInfo.ScreenHeight - 20.0f);
            this.buttonStateText.pixelOffset = new Vector2(GameMenuInfo.EndMainMenuButtonRect.x + 55.0f, GameMenuInfo.EndRestartButtonRect.y - 15.0f);
            this.buttonStateText.text        = "";
            this.billboardText.pixelOffset   = new Vector2(GameMenuInfo.EndMainMenuButtonRect.x + 55.0f, GameMenuInfo.EndBillboardRect.y + (GameMenuInfo.EndBillboardHeight));

            this.starAnimation.transform.GetComponent <GUITexture>().pixelInset = GameMenuInfo.StarAnimationRect;
            this.noStar.transform.GetComponent <GUITexture>().pixelInset        = GameMenuInfo.NoStarRect;

            this.menu.SetActive(true);
            this.endMenu.SetActive(false);
        }
Пример #2
0
        void Awake() {
            instance = this;

            this.moveText.pixelOffset = new Vector2(30.0f, GlobalInfo.ScreenHeight - 20.0f);
            this.buttonStateText.pixelOffset = new Vector2(GameMenuInfo.EndMainMenuButtonRect.x + 55.0f, GameMenuInfo.EndRestartButtonRect.y - 15.0f);
            this.buttonStateText.text = "";
            this.billboardText.pixelOffset = new Vector2(GameMenuInfo.EndMainMenuButtonRect.x + 55.0f, GameMenuInfo.EndBillboardRect.y + (GameMenuInfo.EndBillboardHeight));

            this.starAnimation.transform.guiTexture.pixelInset = GameMenuInfo.StarAnimationRect;
            this.noStar.transform.guiTexture.pixelInset = GameMenuInfo.NoStarRect;

            this.menu.SetActive(true);
            this.endMenu.SetActive(false);

        }