Insanely huge initial commit

This commit is contained in:
2026-02-21 17:04:05 -08:00
parent 9cdd36191a
commit 613d75914a
22525 changed files with 4035207 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#if PLAYMAKER
using Com.LuisPedroFonseca.ProCamera2D;
using HutongGames.PlayMaker;
using TooltipAttribute = HutongGames.PlayMaker.TooltipAttribute;
[Tooltip("Add a target for the camera to follow.")]
public class PC2DAddCameraTarget : FsmStateActionProCamera2DBase
{
[RequiredField]
[Tooltip("The camera target to add")]
public FsmGameObject target;
[HasFloatSlider(0, 1)]
[Tooltip("The influence this target horizontal position should have when calculating the average position of all the targets")]
public FsmFloat targetInfluenceH = 1;
[HasFloatSlider(0, 1)]
[Tooltip("The influence this target vertical position should have when calculating the average position of all the targets")]
public FsmFloat targetInfluenceV = 1;
[Tooltip("The time it takes for this target to reach it's influence")]
public FsmFloat duration = 0;
public override void OnEnter()
{
if (ProCamera2D.Instance != null && target.Value)
ProCamera2D.Instance.AddCameraTarget(target.Value.transform, targetInfluenceH.Value, targetInfluenceV.Value, duration.Value);
Finish();
}
}
#endif