Esempio n. 1
0
    public void BombExplodeAt(int time, int pId, int ePPosX, int ePPosY)
    {
        Vector3 explodePos = foreController.PixelToWorldPosition(ePPosX, ePPosY, true);
        int     offset     = (isOnDander)?(2200):(0);

        // explosionController.DelayedExecute(time+offset,explodePos);
        ExplosionController.GetInstance().WillExplode(explodePos);
        digController.DelayedExecute(time + offset, explodePos);
    }
Esempio n. 2
0
    public void PlayerTurn(int pId, List <BoxInfo> newBoxes, List <PlayerInfo> playerList)
    {
        PlayerController pCtrl = null;

        isOnDander = false;
        ExplosionController.GetInstance().ResetQueue();
        if (pId == mainPlayerController.info.id)
        {
            uiController.DisplayYourTurn();
            mainPlayerController.GetTurn(true);
            countDownController.ToggleObject(true);
            pCtrl = mainPlayerController;
        }
        else
        {
            mainPlayerController.GetTurn(false);
            countDownController.ToggleObject(false);
        }
        foreach (PlayerInfo p in playerList)
        {
            PlayerController setPCtrl = FindPlayerById(p.id);
            if (setPCtrl == null)
            {
                continue;
            }
            setPCtrl.UpdatePlayerInfo(p);
            if (p.id != pId)
            {
                setPCtrl.GetTurn(false);
            }
            else
            {
                pCtrl = setPCtrl;
                setPCtrl.GetTurn(true);
            }
        }
        foreach (BoxInfo box in newBoxes)
        {
        }
        mainCamController.LockTo(pCtrl.transform);
    }
Esempio n. 3
0
 public void BombExplodeAt(Vector3 pos)
 {
     ExplosionController.GetInstance().ExplodeNearest(pos);
 }