Quantcast
Channel: Latest Questions by brandonhotdo
Viewing all articles
Browse latest Browse all 108

JS to C# not workin

$
0
0
i have a c# void that i want called from js but is say it cant find it. . . js 'server_menu' GUI.Button(Rect(xb,yb,xbs,ybs),"Make World");{ CreatePlanet.Create_Planet(); } c# 'CreatePlanet' using UnityEngine; using System.Collections; public class CreatePlanet : Photon.MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public static void Create_Planet(){ GameObject RealPlayer = PhotonNetwork.Instantiate( "Camera_Player", new Vector3(Random.Range(-1000, 1000),Random.Range(-1000, 1000),Random.Range(-1000, 1000)), Quaternion.identity, 0 ); } } and it says unknown identifier!! plz help

Viewing all articles
Browse latest Browse all 108

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>