// Static Method public static EffectAction CreatePointEffect(GameObject prefab, Vector3 position, Transform parent = null, int _repeat = 0) { EffectAction action = new EffectAction(); action.effectType = Type.Point; action.effectPrefab = prefab; action.spawnPostion = position; action.spawnPostion.z = -5; action.parentTransform = parent; action.repeat = _repeat; return(action); }
public static EffectAction CreateProjectileEffect(GameObject prefab, Vector3 from, Vector3 to, float _duration, Transform parent = null) { EffectAction action = new EffectAction(); action.effectType = Type.Projectile; action.effectPrefab = prefab; action.spawnPostion = from; action.endPosition = to; action.parentTransform = parent; action.moveDuration = _duration; return(action); }