Пример #1
0
    void NotifyGameStart()
    {
        var gameStartAction = new GameStartAction();

        gameStartAction.clientPosDict = new Dictionary <int, Vector3>();
        foreach (var clientid in clientIDs)
        {
            gameStartAction.clientPosDict[clientid] = new Vector3(Random.Range(0, 10), 0, Random.Range(0, 10));
        }
        BroadCastGeneralAction(gameStartAction);
    }
Пример #2
0
 void Start()
 {
     GameStartAction?.Invoke(10000);
 }
Пример #3
0
 public void GameStartInvoke()
 {
     GameStartAction?.Invoke();
 }