コード例 #1
0
 void HandleOver()
 {
     if (Vector3.Distance(transform.position, playerCollect.gameObject.transform.position) <= playerCollect.maxDistance)
     {
         //the player coll contr. knows we are selecting
         playerCollect.SelectionOver();
         //highlight element
         print("highlight");
         Highlight(true);
     }
 }