// Use this for initialization void Start() { photon_view = this.GetComponent <PhotonView>(); Instance = this; local_player = ServerConnection.Instance.getPlayerData(PhotonNetwork.player); ruleset = ServerConnection.Instance.getRulesetData(); ServerConnection.instance.Init(photon_view); this.photonView.RPC("TriggerActionRPC", PhotonTargets.MasterClient, "testing", null); /* * if (playerPrefab == null) { * Debug.LogError("<Color=Red><a>Missing</a></Color> playerPrefab Reference (Game Manager)", this); * } else { * //Debug.Log("Instantiating LocalPlayer from " + Application.loadedLevelName); * * // Spawn a character for the local player * PhotonNetwork.Instantiate(this.playerPrefab.name, new Vector3(0f,0f,0f), Quaternion.identity, 0); * } */ }
public RulesetData getRulesetData() { RulesetData ruledata = new RulesetData(); return(ruledata); }