Пример #1
0
    public void UpdateScore(CapsuleObject.Belong_State team)
    {
        switch (team)
        {
        case CapsuleObject.Belong_State.Red:
            Red.AddScore();
            break;

        case CapsuleObject.Belong_State.Green:
            Green.AddScore();
            break;


        case CapsuleObject.Belong_State.Blue:
            Blue.AddScore();
            break;

        case CapsuleObject.Belong_State.Yellow:
            Yellow.AddScore();
            break;
        }
    }