mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 08:54:43 +01:00
20 lines
456 B
C#
20 lines
456 B
C#
using System;
|
|
using FullInspector;
|
|
using UnityEngine;
|
|
|
|
namespace MoleMole.Config
|
|
{
|
|
public class UseCameraForward : EffectCreationOp
|
|
{
|
|
[NonSerialized]
|
|
[InspectorDisabled]
|
|
public string type = "Use Camera Forward";
|
|
|
|
public override void Process(ref Vector3 initPos, ref Vector3 initDir, ref Vector3 initScale, BaseMonoEntity entity)
|
|
{
|
|
Vector3 forward = Singleton<CameraManager>.Instance.GetMainCamera().Forward;
|
|
initDir = forward;
|
|
}
|
|
}
|
|
}
|