23 lines
657 B
Plaintext
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);
|
|
}
|
|
}
|