public override string ToString() { char charRep = 'X'; switch (Facing) { case Direction.North: charRep = '^'; break; case Direction.East: charRep = '>'; break; case Direction.South: charRep = 'v'; break; case Direction.West: charRep = '<'; break; } return(charRep + " " + track.coord + " " + TurnDirection.GetType().Name); }
void OnStartTurn(ITurn turn) { float start = m_GrayScale.GetGray(); if (turn.GetType() == typeof(Unit) && (turn as Unit).OwnerID == 1 && !(turn as Unit).IsIdentified) { StopAllCoroutines(); Noise.enabled = true; StartCoroutine(M_Extensions.YieldT(f => m_GrayScale.SetGray(start + (1 - start) * f), 0.25f)); } else { StopAllCoroutines(); Noise.enabled = false; StartCoroutine(M_Extensions.YieldT(f => m_GrayScale.SetGray(start * (1 - f)), 0.25f)); } }