1
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using BITKit;
|
||||
using UnityEngine.Events;
|
||||
@@ -22,13 +23,14 @@ namespace BITKit
|
||||
sinleton = this;
|
||||
DI.Register(this);
|
||||
}
|
||||
public Transform Spawn(VFXMessage message)
|
||||
public Transform Spawn(RaycastHit hit, params string[] keyWords)
|
||||
{
|
||||
if (Data.TryGetValue<Transform>(message.path, out var vfx))
|
||||
return Spawn(new Location()
|
||||
{
|
||||
return Instantiate(vfx, message.location, message.location);
|
||||
}
|
||||
return null;
|
||||
position = hit.point,
|
||||
rotation = Quaternion.LookRotation(hit.normal),
|
||||
forward = hit.normal,
|
||||
}, keyWords);
|
||||
}
|
||||
public Transform Spawn(Location location, params string[] keyWords)
|
||||
{
|
||||
|
Reference in New Issue
Block a user