mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 17:04:45 +01:00
21 lines
462 B
C#
21 lines
462 B
C#
using System;
|
|
using FullInspector;
|
|
using UnityEngine;
|
|
|
|
namespace MoleMole.Config
|
|
{
|
|
public class RotateAroundYEffectOp : EffectCreationOp
|
|
{
|
|
[NonSerialized]
|
|
[InspectorDisabled]
|
|
public string type = "RotateAroundYEffectOp";
|
|
|
|
public float rotation = 180f;
|
|
|
|
public override void Process(ref Vector3 initPos, ref Vector3 initDir, ref Vector3 initScale, BaseMonoEntity entity)
|
|
{
|
|
initDir = Quaternion.AngleAxis(rotation, Vector3.up) * initDir;
|
|
}
|
|
}
|
|
}
|