private void Awake() { scores = new int[2] { 0, 0 }; Instance = this; isMaster = PhotonNetwork.IsMasterClient; }
public void CancelGameCreation() { OnlineGameController.LaunchDeleteOnlineGameById(onlineGame.id_game); }
private void SearchAnotherPlayer() { DebugLog.DebugMessage("Searching player....", true); //Recherche si un joueur rejoins la partie OnlineGameController.LaunchCheckIfPlayerJoin(onlineGame.id_game); }
private void OnEnable() { //Create a game OnlineGameController.LaunchUploadNewOnlineGame(); }
// Start is called before the first frame update void Start() { Instance = this; oldTime = Time.time; }
public void TryToJoinOnlineGame(OnlineGameInfo onlineGame) { DebugLog.DebugMessage("Try to join online game ...", true); OnlineGameController.LaunchCheckGameIsAvailable(onlineGame.id_game); }
public void LoadOnlineGames() { DebugLog.DebugMessage("Load Available Online Games ...", true); OnlineGameController.LaunchGetAllOnlineGames(); }
//Call update online game in API, to make i disappear from the menu. private void SetOnlineGameInfoListener(OnlineGameInfo onlineGame) { DebugLog.DebugMessage("Mark current player as listener of Online Game ...", true); onlineGame.listener = Network.player.ipAddress; OnlineGameController.LaunchUpdateOnlineGame(onlineGame); }
// Use this for initialization void Start() { objOnlineGameController = GameObject.Find("OnlineGameController").GetComponent <OnlineGameController>(); }