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

JS to C# not workin

$
0
0
i have a javascrip file where it calls a c# viod js 'Server_Menu' function OnGUI(){ GUI.Box(Rect(x,y,xs,ys),"","button"); 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 ); } } there both in same folder but it say unknown identifier CreatePlanet 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>