public override void OnEnable() { base.OnEnable(); eventTextController = GameObject.Find("EventTextController").GetComponent <EventTextController>(); eventTextController.Init(); if (PhotonNetwork.CurrentRoom.CustomProperties["leaderboardSlot1"] == null) { PhotonNetwork.CurrentRoom.SetCustomProperties(new ExitGames.Client.Photon.Hashtable { ["leaderboardSlot1"] = 0, ["leaderboardSlot2"] = 0, ["leaderboardSlot3"] = 0, ["leaderboardSlot4"] = 0, ["colour1Owner"] = 0, ["colour2Owner"] = 0, ["colour3Owner"] = 0, ["colour4Owner"] = 0 } ); } else { CreatePlayer(); } }
private void Start() { c_objectives = GetComponent <ObjectiveController>(); c_eventText = GetComponent <EventTextController>(); }