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)); } }
void Start() { tagsToHoldTo = ShapeInfo.getShapeTags(); }