Ejemplo n.º 1
0
    public void ExitUi()
    {
        PlayerPlatformerController1._instance.Con_Player(true);

        btn.GetComponent <Button>().enabled           = false;
        StealInsideImg.GetComponent <Image>().enabled = false;
        Exit_btn.SetActive(false);
    }
Ejemplo n.º 2
0
Archivo: Form1.cs Proyecto: tphuy/Snake
 private void newgame_Click(object sender, EventArgs e)
 {
     level1.Show();
     level2.Show();
     newgame.Hide();
     High.Hide();
     Exit_btn.Hide();
     btn_About.Hide();
     lbSnake.Hide();
 }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        btn      = GameObject.Find("StealInSide/Button");
        Exit_btn = GameObject.Find("StealInSide/Exit");
        Knief    = GameObject.Find("StealInSide/Knife");
        KniefBtn = GameObject.Find("StealInSide/Knife/KnifeBtn");

        btn.GetComponent <Button>().enabled = false;
        Exit_btn.SetActive(false);

        KniefBtn.GetComponent <Button>().enabled = false;

        StealInsideImg.GetComponent <Image>().enabled = false;
        Knief.GetComponent <Image>().enabled          = false;
    }
Ejemplo n.º 4
0
Archivo: Form1.cs Proyecto: tphuy/Snake
 // xử lí chơi lại
 public void reset()
 {
     timer1.Enabled = false;
     MessageBox.Show("Điểm: " + score.ToString(), "GAME OVER");
     timer1.Interval = 150; // đưa tốc độ về lúc ban đầu
     score           = 0;   // đưa điểm về lại bằng 0
     toolStripStatusLabelScore.Text = "0";
     newgame.Text = "PLAY AGAIN";
     panel1.Show();
     newgame.Show();
     High.Show();
     Exit_btn.Show();
     btn_About.Show();
     lbSnake.Show();
     level1.Hide();
     level2.Hide();
     snake = new Snake.Snake();
 }