using System.Collections; using System.Collections.Generic; using UnityEngine; public class ActiveBlock : Block { protected List currentPlayers = new List(); #region Class Functions /// /// Is called after all players have taken one move /// /// Should be implemented by a derived class /// public virtual void OnEnvironmentTurn(PlayerData[] allPlayers) { } /// /// Is called when a player moves onto this block /// /// Should be implemented by a derived class /// /// Player which moved on to block public virtual void OnWalkedOnByPlayer(PlayerData player) { currentPlayers.Add(player); } /// /// Is called when a player moves off of block /// /// Should be implemented by a derived class /// /// Player which moved on to block public virtual void OnLeftByPlayer(PlayerData player) { currentPlayers.Remove(player); } /// /// Called after all players have finished all their moves /// /// Should be implemented by a derived class /// public virtual void OnRoundEnd(PlayerData[] allPlayers) { } #endregion Class Functions }