void OnTriggerEnter(Collider col)
 {
     if (ShapeInfo.getShapeTags().Contains(col.gameObject.tag))
     {
         col.gameObject.transform.position = resetTo.position;
     }
 }
 void OnTriggerEnter(Collider col)
 {
     if (ShapeInfo.getShapeTags().Contains(col.gameObject.tag))
     {
         string tag = col.gameObject.tag;
         shapeSpawner.DestroyShape();
         Debug.Log("destroyed shape, now calling event");
         OnShapeCollidedIsCorrectHit(tag.Equals(tagToCheckFor));
     }
 }
Exemplo n.º 3
0
 void Start()
 {
     tagsToHoldTo = ShapeInfo.getShapeTags();
 }