예제 #1
0
    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 ();

        }
    }
예제 #2
0
    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();
        }
    }