Example #1
0
    public static GameObject CreateProjectile(string prefabid, GameObject owner)
    {
        Transform trans = owner.GetEyeTransform();
        //Vector3 forward = trans.forward;
        Vector3    pos = trans.position;
        Quaternion rot = trans.rotation;

        var projectile = PrefabStorage.Instantiate(prefabid, pos, rot);

        return(projectile);
    }
Example #2
0
 public static void Dispatch(string name, Vector3 position, Quaternion rotation)
 {
     PrefabStorage.Instantiate(name, position, rotation);
 }