update plugin

This commit is contained in:
CroakFang
2023-06-29 15:34:20 +08:00
parent b53035de82
commit 05a7afe25a
1469 changed files with 1264644 additions and 251 deletions
@@ -0,0 +1,30 @@
using UnityEngine;
using System.Collections;
using RootMotion.FinalIK;
namespace RootMotion.Demos {
/// <summary>
/// Just for testing out the Recoil script.
/// </summary>
[RequireComponent(typeof(Recoil))]
public class RecoilTest : MonoBehaviour {
public float magnitude = 1f;
private Recoil recoil;
void Start() {
recoil = GetComponent<Recoil>();
}
void Update() {
if (Input.GetKeyDown(KeyCode.R) || Input.GetMouseButtonDown(0)) recoil.Fire(magnitude);
}
void OnGUI() {
GUILayout.Label("Press R or LMB for procedural recoil.");
}
}
}