Example #1
0
 // 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>();
	}
Example #3
0
 // 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>();
 }
Example #4
0
    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>();
	}
Example #6
0
 // Use this for initialization
 void Start()
 {
     io          = GameObject.Find("SocketIO").GetComponent <SocketIO.SocketIOComponent>();
     test_script = GameObject.Find("ConnectServer").GetComponent <TestSocketIO>();
 }
Example #7
0
 // Use this for initialization
 void Start()
 {
     world  = GameObject.Find("WorldStartHere").GetComponent <World>();
     socket = GameObject.Find("ConnectServer").GetComponent <TestSocketIO>();
 }
Example #8
0
    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>();
	}
Example #11
0
 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)));
 }