mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 00:44:49 +01:00
24 lines
526 B
C#
24 lines
526 B
C#
using System;
|
|
using FullInspector;
|
|
using UnityEngine;
|
|
|
|
namespace MoleMole.Config
|
|
{
|
|
public class ForceYAndOffsetAlongForwardEffectOp : EffectCreationOp
|
|
{
|
|
[NonSerialized]
|
|
[InspectorDisabled]
|
|
public string type = "ForceY And Offset Along Forward Effect";
|
|
|
|
public float y;
|
|
|
|
public float offset;
|
|
|
|
public override void Process(ref Vector3 initPos, ref Vector3 initDir, ref Vector3 initScale, BaseMonoEntity entity)
|
|
{
|
|
initPos.y = y * initScale.y;
|
|
initPos += Vector3.Scale(initDir, initScale) * offset;
|
|
}
|
|
}
|
|
}
|