Exemple #1
0
    // Use this for initialization

    void Start()
    {
        isTutoSystem = PlayerPrefs.GetInt("GameCount", 0) == 1;

        EnhancePanel        = transform.FindChild("EnchancePopUp").gameObject;
        OptionPanel         = transform.FindChild("OptionPanel").gameObject;
        ExitPanel           = transform.FindChild("ExitPanel").gameObject;
        BottomInstallButton = transform.FindChild("InstallPopUp").gameObject;
        GameEndPanel        = transform.FindChild("GameEndPanel").gameObject;
        installControl      = BottomInstallButton.GetComponent <InstallPopUPControl>();

        //Game End Panel Initialize
        endPanelSprite            = GameEndPanel.transform.FindChild("panelSprite").GetComponent <UISprite>();
        endPanelSprite.spriteName = PlayerPrefs.GetString("PlayerSprite", "King") + "_dead";
        endPanelSprite.MakePixelPerfect();
        endPanelSprite.transform.localScale = new Vector3(2, 2, 2);
    }