// Use this for initialization void Start() { socket = GameObject.Find("ConnectServer").GetComponent <TestSocketIO>(); aimer = transform.Find("Aimer").gameObject; isplayer = tag == "Player" ? true : false; this.rigidbody = GetComponent <Rigidbody>(); }
// Use this for initialization void Start () { isplayer = tag=="Player" ? true : false ; SuckIMG= GameObject.Find("ItemSuck").GetComponent<Image>(); BumpIMG = GameObject.Find("ItemBump").GetComponent<Image>(); TeleportIMG = GameObject.Find("ItemMine").GetComponent<Image>(); world = GameObject.Find("WorldStartHere").GetComponent<World>(); socket = GameObject.Find("ConnectServer").GetComponent<TestSocketIO>(); }
// Use this for initialization void Start() { isplayer = tag == "Player" ? true : false; SuckIMG = GameObject.Find("ItemSuck").GetComponent <Image>(); BumpIMG = GameObject.Find("ItemBump").GetComponent <Image>(); TeleportIMG = GameObject.Find("ItemMine").GetComponent <Image>(); world = GameObject.Find("WorldStartHere").GetComponent <World>(); socket = GameObject.Find("ConnectServer").GetComponent <TestSocketIO>(); }
private void OnMouseDown() { // Get sockets script GameObject go = GameObject.Find("TestSocketObj"); _testSocketScript = go.GetComponent <TestSocketIO>(); _socket = _testSocketScript.socket; Debug.Log("click"); StartCoroutine(UploadPNG()); }
// Use this for initialization void Start () { io = GameObject.Find("SocketIO").GetComponent<SocketIO.SocketIOComponent>(); test_script = GameObject.Find("ConnectServer").GetComponent<TestSocketIO>(); }
// Use this for initialization void Start() { io = GameObject.Find("SocketIO").GetComponent <SocketIO.SocketIOComponent>(); test_script = GameObject.Find("ConnectServer").GetComponent <TestSocketIO>(); }
// Use this for initialization void Start() { world = GameObject.Find("WorldStartHere").GetComponent <World>(); socket = GameObject.Find("ConnectServer").GetComponent <TestSocketIO>(); }
void Start() { location = refObj.GetComponent<TestSocketIO> (); //Spawn(); //初期スポーン }
// Use this for initialization void Start () { socket = GameObject.Find("ConnectServer").GetComponent<TestSocketIO>(); aimer = transform.Find("Aimer").gameObject; isplayer = tag=="Player" ? true : false; this.rigidbody = GetComponent<Rigidbody>(); }
// Use this for initialization void Start () { world = GameObject.Find("WorldStartHere").GetComponent<World>(); socket = GameObject.Find("ConnectServer").GetComponent<TestSocketIO>(); }
public void OnMove(Vector3 position) { // Send position to node Debug.Log("sending position to node" + TestSocketIO.VectorToJson(position)); socket.Emit("move", new JSONObject(TestSocketIO.VectorToJson(position))); }