public void AddPropNum(GamePropsId prop, int num = 1) { if (m_panelPlaying != null) { m_panelPlaying.AddPropNum(prop, num); } }
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; }
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; } }
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; } }
public void UseProp(GamePropsId propId) { Messenger.Broadcast(ConstValue.MSG_USE_PROP, propId); }
void UsePropSuc(GamePropsId prop) { m_panelPlaying.UsePropSuc(prop); }
void UseProp(GamePropsId propId) { boxPanel.isUsingProp = true; boxPanel.usingPropID = propId; }
void UsePropCancel(GamePropsId propId) { isPlaying = true; boxPanel.isUsingProp = false; boxPanel.usingPropID = GamePropsId.None; }