WXMC/.svn/pristine/ed/ed2482b586fd6e219b3f78a12deab1050e679c91.svn-base
2024-12-04 16:18:46 +08:00

23 lines
657 B
Plaintext

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PEffect_Common_SpawnProjectile : PHomeProjectileCommonEventHandler
{
public GameObject Prefab;
public override void Handle(ProjectileEventContext context)
{
ShootData newShoodData = context.ShootData;
newShoodData.StartPoint = context.Projectile.transform.position;
newShoodData.Direction = null;
newShoodData.EndPoint = null;
newShoodData.TargetUnit = null;
var proj = context.GameMode.SpawnProjectile(
context.Projectile.Instigator,
newShoodData,
Prefab);
}
}