示例#1
0
 void Start()
 {
     EventCoordinator.Attach(EventName.System.EndGame(), OnEndGame);
     EventCoordinator.Attach(EventName.Input.StartGame(), OnGameStart);
     EventCoordinator.Attach(EventName.System.MatchStarted(), MatchStarted);
 }
示例#2
0
 //This script
 void Start()
 {
     EventCoordinator.Attach(EventName.Input.StartGame(), OnStartGame);
     EventCoordinator.Attach(EventName.System.Environment.EndMatch(), OnEndMatch);
 }