コード例 #1
0
 public virtual void RoundOver(RoundOverState state)
 {
     foreach (var chute in this.Chutes)
     {
         chute.RoundOver(state);
     }
 }
コード例 #2
0
 public override void RoundOver(RoundOverState state)
 {
     base.RoundOver(state);
     if (state == RoundOverState.Post)
     {
         this.Plane.Clear();
     }
 }
コード例 #3
0
 public void RoundOver(RoundOverState state)
 {
     switch (state)
     {
     case RoundOverState.Post:
         this.GameBoard.GameModel.JackpotScore   += this.GameBoard.GameModel.InterRoundBonus;
         this.GameBoard.GameModel.InterRoundBonus = 0;
         break;
     }
 }
コード例 #4
0
        public virtual void RoundOver(RoundOverState state)
        {
            switch (state)
            {
            case RoundOverState.Pre:
                break;

            case RoundOverState.Post:
                this.CannonBall = null;
                break;
            }
        }
コード例 #5
0
        public virtual void RoundOver(RoundOverState state)
        {
            switch (state)
            {
            case RoundOverState.Pre:
                break;

            case RoundOverState.Post:
                GameBoard.GameModel.CannonAngle = 0;
                break;
            }
        }
コード例 #6
0
 public virtual void RoundOver(RoundOverState state)
 {
     for (var i = Pegs.Count - 1; i >= 0; i--)
     {
         var peg = Pegs[i];
         peg.RoundOver(state);
         if (state == RoundOverState.Post && peg.Hit)
         {
             Pegs.RemoveAt(i);
         }
     }
 }
コード例 #7
0
ファイル: Peg.cs プロジェクト: alex520lq/BingoBlockParty
        public virtual void RoundOver(RoundOverState state)
        {
            if (this.Hit)
            {
                switch (state)
                {
                case RoundOverState.Post:

                    this.Destroy();
                    break;
                }
            }
        }
コード例 #8
0
        public override void RoundOver(RoundOverState state)
        {
            base.RoundOver(state);
            if (this.Hit)
            {
                switch (state)
                {
                case RoundOverState.Pre:

                    this.Blinking = true;
                    break;
                }
            }
        }
コード例 #9
0
ファイル: Chute.cs プロジェクト: alex520lq/BingoBlockParty
        public virtual void RoundOver(RoundOverState state)
        {
            switch (state)
            {
            case RoundOverState.Pre:
                break;

            case RoundOverState.Post:
                this.Triggered   = false;
                this.ChuteNumber = 50;

                break;
            }
        }
コード例 #10
0
        public override void RoundOver(RoundOverState state)
        {
            base.RoundOver(state);
            switch (state)
            {
            case RoundOverState.Pre:
                if (Triggered)
                {
                    Blinking = true;
                }
                break;

            case RoundOverState.Post:
                this.Blinking = false;
                break;
            }
        }
コード例 #11
0
    // Update is called once per frame
    void Update()
    {
        timerFloat    += Time.deltaTime;
        timeSeconds    = (int)timerFloat % 60;
        timerText.text = "Time Remaining: " + (roundTime - timeSeconds);

        Debug.Log(shotsHit + "/" + maxScore);
        if (shotsHit >= maxScore)
        {
            roundOver = RoundOverState.Win;
            EndRound();
        }
        if (roundTime - timeSeconds <= 0)
        {
            roundOver = RoundOverState.Lose;
            EndRound();
        }
    }
コード例 #12
0
 public void RoundOver(RoundOverState state)
 {
 }
コード例 #13
0
 public void RoundOver(RoundOverState post)
 {
 }