Beispiel #1
0
 private void Update()
 {
     if (Input.GetKey(KeyCode.Mouse0))
     {
         ray = gameCam.ScreenPointToRay(Input.mousePosition);
         if (Physics.Raycast(ray, out hitInfo, Mathf.Infinity, jellyLayer))
         {
             jellyObj = hitInfo.transform.gameObject.GetComponent <JellyObjJob>();
             jellyObj.ApplyPressureToPoint(hitInfo.point, pressure);
         }
     }
 }
Beispiel #2
0
 public void AddJelly(JellyObjJob jelly)
 {
     thread.myJellyObjects.Enqueue(jelly);
 }