private INTERNAL_CALL_CreatePrimitive ( |
||
self | ||
sides | int | |
scale | Vector2 | |
offset | Vector2 | |
Résultat | void |
public void CreatePrimitive(int sides) { Vector2 zero = Vector2.zero; Vector2 one = Vector2.one; PolygonCollider2D.INTERNAL_CALL_CreatePrimitive(this, sides, ref one, ref zero); }
public void CreatePrimitive(int sides, Vector2 scale) { Vector2 zero = Vector2.zero; PolygonCollider2D.INTERNAL_CALL_CreatePrimitive(this, sides, ref scale, ref zero); }
public void CreatePrimitive(int sides, [DefaultValue("Vector2.one")] Vector2 scale, [DefaultValue("Vector2.zero")] Vector2 offset) { PolygonCollider2D.INTERNAL_CALL_CreatePrimitive(this, sides, ref scale, ref offset); }