示例#1
0
 public Bomb(Control F1btnBomb, BombImage F1ImageBomb)
 {
     this.btnBomb              = F1btnBomb;
     this.ImageBomb            = F1ImageBomb;
     this.ThoiGianBomb.Enabled = true;
     this.ThoiGian             = DateTime.Now.AddSeconds(2);
     ThoiGianBomb.Elapsed     += ThoiGianBomb_Elapsed;
 }
示例#2
0
    //デバッグ用
    public void GeneratorBombImage(int ID)
    {
        switch (ID)
        {
        case 0:
            tmpPrefab = (BombImage)Instantiate(bombImageCircle);
            break;

        case 1:
            tmpPrefab = (BombImage)Instantiate(bombImageTriangle);
            break;

        case 2:
            tmpPrefab = (BombImage)Instantiate(bombImageSquare);
            break;

        default:
            break;
        }
        tmpPrefab.Initialize(GetMyColor());
        tmpPrefab.transform.SetParent(canvas.transform, false);
    }
示例#3
0
    public void GenerateBombImage()
    {
        nowBombNum = Random.Range(0, 3);
        switch (nowBombNum)
        {
        case 0:
            tmpPrefab = (BombImage)Instantiate(bombImageCircle);
            break;

        case 1:
            tmpPrefab = (BombImage)Instantiate(bombImageTriangle);
            break;

        case 2:
            tmpPrefab = (BombImage)Instantiate(bombImageSquare);
            break;

        default:
            break;
        }
        tmpPrefab.Initialize(GetMyColor());
        tmpPrefab.transform.SetParent(canvas.transform, false);
    }