Format code
This commit is contained in:
@@ -125,7 +125,7 @@ namespace FlaxEngine
|
|||||||
{
|
{
|
||||||
if (type.IsAbstract)
|
if (type.IsAbstract)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var result = (Actor)New(type);
|
var result = (Actor)New(type);
|
||||||
result.SetParent(this, false, false);
|
result.SetParent(this, false, false);
|
||||||
return result;
|
return result;
|
||||||
@@ -180,7 +180,7 @@ namespace FlaxEngine
|
|||||||
{
|
{
|
||||||
if (typeof(T).IsAbstract)
|
if (typeof(T).IsAbstract)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
result = New<T>();
|
result = New<T>();
|
||||||
result.SetParent(this, false, false);
|
result.SetParent(this, false, false);
|
||||||
}
|
}
|
||||||
@@ -196,7 +196,7 @@ namespace FlaxEngine
|
|||||||
{
|
{
|
||||||
if (type.IsAbstract)
|
if (type.IsAbstract)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var script = (Script)New(type);
|
var script = (Script)New(type);
|
||||||
script.Parent = this;
|
script.Parent = this;
|
||||||
return script;
|
return script;
|
||||||
@@ -211,7 +211,7 @@ namespace FlaxEngine
|
|||||||
{
|
{
|
||||||
if (typeof(T).IsAbstract)
|
if (typeof(T).IsAbstract)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var script = New<T>();
|
var script = New<T>();
|
||||||
script.Parent = this;
|
script.Parent = this;
|
||||||
return script;
|
return script;
|
||||||
|
|||||||
Reference in New Issue
Block a user