예제 #1
0
        // Playbutton clicked
        private void play_Click(object sender, RoutedEventArgs e)
        {
            var chooseDifficulty = new ChooseDifficulty();

            chooseDifficulty.Show();
            Close();
        }
예제 #2
0
        public override void Initialize()
        {
            homescreen = new HomeScreen();
            homescreen.Initialize();
            homescreen.Visible = true;

            chooseDifficulty = new ChooseDifficulty();
            chooseDifficulty.Initialize();
            chooseDifficulty.Visible = false;
            base.Initialize();
        }
예제 #3
0
 public Menu()
 {
     InitializeComponent();
     this.FormBorderStyle = FormBorderStyle.None;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.StartPosition   = FormStartPosition.CenterScreen;
     scoreBoard           = new ScoreBoard(this);
     instructions         = new Instructions(this);
     chooseDifficulty     = new ChooseDifficulty(this);
     DoubleBuffered       = true;
 }
예제 #4
0
    // Use this for initialization
    void Start()
    {
        if (m_CampaignBG == null)
        {
            m_title      = GameObject.Find("lb_campaign_title").GetComponent <UILabel>();
            m_CampaignBG = GameObject.Find("sp_campaign_bg").GetComponent <UISprite>();
            m_RedLine    = GameObject.Find("sp_line_red").GetComponent <UISprite>();
            for (int i = 1; i <= 6; i++)
            {
                m_LevelBtn[i - 1] = GameObject.Find("btn_level" + i);
            }
            m_Difficulty1 = GameObject.Find("bt_difficulty1").GetComponent <ChooseDifficulty>();
            m_Difficulty2 = GameObject.Find("bt_difficulty2").GetComponent <ChooseDifficulty>();
            m_Difficulty3 = GameObject.Find("bt_difficulty3").GetComponent <ChooseDifficulty>();
        }

        /*
         * sdConfDataMgr.Instance().Init(true);	// test
         * m_BattleID = 11; // test
         * ShowCampaign();
         */
    }