Match Finished ================ .. code-block:: csharp public event Action MatchFinished This event fired when the game match ends. Contains info about the winner team (int). **Example** For example, you can do something when the game match ends without any changes to the asset code, just connect to this event from your own script. .. code-block:: csharp using InsaneSystems.RTSKit.Gameplay; // don't forget this directive if your script is not in the InsaneSystems.RTSKit.Gameplay namespace. // this example code can be run from any MonoBehaviour script [Inject] GameplayService gameplay; void Start() { gameplay.MatchFinished += OnMatchFinished; } void OnMatchFinished(int winnerTeam) { Debug.Log("Match is finished! Winner: " + winnerTeam); // ... this message will appear in Console. } .. toctree::