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,30 @@
#if PLAYMAKER
using Com.LuisPedroFonseca.ProCamera2D;
using HutongGames.PlayMaker;
using TooltipAttribute = HutongGames.PlayMaker.TooltipAttribute;
using UnityEngine;
[Tooltip("Shakes the camera position along its horizontal and vertical axes using a preset configured in the editor")]
public class PC2DShakeWithPreset : FsmStateActionProCamera2DBase
{
[RequiredField]
[Tooltip("The camera with the ProCamera2D component, most probably the MainCamera")]
public FsmGameObject MainCamera;
[Tooltip("The name of the shake preset configured in the editor")]
public FsmString PresetName;
public override void OnEnter()
{
var shake = MainCamera.Value.GetComponent<ProCamera2DShake>();
if (shake == null)
Debug.LogError("The ProCamera2D component needs to have the Shake plugin enabled.");
if (ProCamera2D.Instance != null && shake != null)
shake.Shake(PresetName.Value);
Finish();
}
}
#endif