Exemplo n.º 1
0
    /// <summary>
    /// Sends a hashtable with mission data to all players in the room.
    /// </summary>
    /// <param name="newMission">The hashtable containing mission data</param>
    public void SendMission(Mission newMission)
    {
        Hashtable missionTable = newMission.ToHashtable();
        print("missionTable: " + missionTable);
        GameControl.pObject.GameState = GameControl.GAMESTATE.WaitingInGroup;
        if (PhotonNetwork.RaiseEvent(1, missionTable, true, null))
        {
            if (onMissionSent != null)
            {
                onMissionSent();
            }
        }

    }