public static Create ( Axiom.Core.Mesh mesh ) : bool | ||
mesh | Axiom.Core.Mesh | The mesh that the potential prefab will be created in. |
Результат | bool |
public static bool Create( Mesh mesh )
{
switch ( mesh.Name )
{
case "Prefab_Plane":
_createPlane( mesh );
return true;
case "Prefab_Cube":
_createCube( mesh );
return true;
case "Prefab_Sphere":
_createSphere( mesh );
return true;
}
return false;
}