using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Networking.Server;
public class ColorGameMode : GameMode
{
public int MaxRound = 5;
private int RoundCount = 0;
///
/// Called once all players have finished their moves but before the Objective is checked
///
public override void OnRoundFinished()
{
RoundCount++;
}
///
/// Checks if the Game is finished
///
/// returns if game is finished
public override bool isGameOver()
{
return (RoundCount <= MaxRound);
}
///
/// Called once per player after they have moved onto a block
///
/// Character whic hmoved
/// Client of the character
/// Block moved onto
public override void OnPlayerFinishedMove(Character character,ClientData client, Block currentBlock)
{
//Code for changing block color and updating player scores;
}
}