1
This commit is contained in:
@@ -35,9 +35,10 @@ namespace BITKit
|
||||
if (TryMatch(out var prefab, keyWords))
|
||||
{
|
||||
var pool = pools.Get(prefab.name);
|
||||
var instance = pool.Get(prefab,transform);
|
||||
var instance = pool.Get(prefab, transform);
|
||||
instance.SetPositionAndRotation(location, location);
|
||||
instance.forward = location.forward;
|
||||
if (location.forward.sqrMagnitude is not 0)
|
||||
instance.forward = location.forward;
|
||||
return instance;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user