public void CreateMesh(float rotationSpeed, string name = null, bool setAsRoot = false) { component = new StateComponent(this, rotationSpeed, name, setAsRoot); component.SetStaticMesh(StaticMesh.Cube); component.SetMaterial(0, material); }