/// <summary> /// Gets the polygon prefab. /// </summary> /// <returns> /// The polygon prefab. /// </returns> /// <param name='name'> /// The name of the polygon. If null, means the same object as what is calling /// </param> public GameObject getPolygon(string name) { if (name == null) { name = this.transform.parent.name; } return(polygonManager.getPolygon(name)); }
/// <summary> /// Gets the polygon prefab. /// </summary> /// <returns> /// The polygon prefab. /// </returns> /// <param name='name'> /// The name of the polygon /// </param> public GameObject getPolygon(string name) { return(polygonManager.getPolygon(name)); }