void Update() { if(Input.GetMouseButtonDown(0)) { Vector3 pos = Camera.main.ScreenToWorldPoint (Input.mousePosition); pos.z = 1f; PTPGameController.instance.createGreenSphere (pos); ObjectCreatePackage p = new ObjectCreatePackage (pos.x, pos.y); p.send (); } }
void Update() { if (Input.GetMouseButtonDown(0)) { Vector3 pos = Camera.main.ScreenToWorldPoint(Input.mousePosition); pos.z = 1f; PTPGameController.instance.createGreenSphere(pos); ObjectCreatePackage p = new ObjectCreatePackage(pos.x, pos.y); p.send(); } }