Match Started

public event Action MatchStarted

This event fired when the game match begins.

Example For example, you can do something when the game starts without any changes to the asset code, just connect to this event from your own script.

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.MatchStarted += OnMatchStarted;
}

void OnMatchStarted()
{
  Debug.Log("Match is started!"); // ... this message will appear in Console.
}