Ejemplo n.º 1
0
 // Tells the gridHandler to snap a fig to the grid when one enters the grid square.
 private void OnTriggerEnter(Collider other)
 {
     if (snappingTags.Contains(other.gameObject.tag))
     {
         gridHandler.AddToSnappingQueue(other.gameObject.transform.parent.gameObject);
     }
 }