Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (OnTouchDown() == true)
     {
         line linecomp = lineObj.GetComponent <line>();
         linecomp.startdrawline(transform.position);
     }
     if (OnMouseDown() == true)
     {
         print("ドラッグしながら触れられたか");
         line linecomp = lineObj.GetComponent <line>();
         linecomp.startdrawlinePC(transform.position);
     }
     if (OnDragOver() == true)
     {
         line linecomp = lineObj.GetComponent <line>();
         linecomp.makeTurningPoint(transform.position);
     }
     if (OnMouseEnter() == true)
     {
         print("ドラッグしながら触れられたか");
         line linecomp = lineObj.GetComponent <line>();
         linecomp.makeTurningPointPC(transform.position);
     }
 }