Exemplo n.º 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);
    }
Exemplo n.º 2
0
 void Start()
 {
     GameStartAction?.Invoke(10000);
 }
Exemplo n.º 3
0
 public void GameStartInvoke()
 {
     GameStartAction?.Invoke();
 }