Ejemplo n.º 1
0
 public void AddPropNum(GamePropsId prop, int num = 1)
 {
     if (m_panelPlaying != null)
     {
         m_panelPlaying.AddPropNum(prop, num);
     }
 }
Ejemplo n.º 2
0
    void ChangeCurrentProp(GamePropsId prop)
    {
        if (currentProp != GamePropsId.None)
        {
            switch (currentProp)
            {
            case GamePropsId.Bomb:
                bombBtn.State = PropsSprite.PropState.Default;
                break;

            case GamePropsId.Rocket:
                rocketBtn.State = PropsSprite.PropState.Default;
                break;

            case GamePropsId.Shock:
                shockBtn.State = PropsSprite.PropState.Default;
                break;

            case GamePropsId.Same:
                sameBtn.State = PropsSprite.PropState.Default;
                break;
            }
        }
        currentProp = prop;
    }
Ejemplo n.º 3
0
    public void AddPropNum(GamePropsId prop, int num = 1)
    {
        switch (prop)
        {
        case GamePropsId.Bomb:
            bombBtn.Num += num;
            break;

        case GamePropsId.Rocket:
            rocketBtn.Num += num;
            break;

        case GamePropsId.Shock:
            shockBtn.Num += num;
            break;

        case GamePropsId.Same:
            sameBtn.Num += num;
            break;
        }
    }
Ejemplo n.º 4
0
    public void UsePropSuc(GamePropsId prop)
    {
        ChangeCurrentProp(GamePropsId.None);
        switch (prop)
        {
        case GamePropsId.Bomb:
            bombBtn.Num -= 1;
            break;

        case GamePropsId.Rocket:
            rocketBtn.Num -= 1;
            break;

        case GamePropsId.Shock:
            shockBtn.Num -= 1;
            break;

        case GamePropsId.Same:
            sameBtn.Num -= 1;
            break;
        }
    }
Ejemplo n.º 5
0
 public void UseProp(GamePropsId propId)
 {
     Messenger.Broadcast(ConstValue.MSG_USE_PROP, propId);
 }
Ejemplo n.º 6
0
 void UsePropSuc(GamePropsId prop)
 {
     m_panelPlaying.UsePropSuc(prop);
 }
Ejemplo n.º 7
0
 void UseProp(GamePropsId propId)
 {
     boxPanel.isUsingProp = true;
     boxPanel.usingPropID = propId;
 }
Ejemplo n.º 8
0
 void UsePropCancel(GamePropsId propId)
 {
     isPlaying            = true;
     boxPanel.isUsingProp = false;
     boxPanel.usingPropID = GamePropsId.None;
 }