Commit f4b14e46 authored by 18손재민's avatar 18손재민

총 위아래로 왔다갔다 구현함, 적용은 AnimTest 코드를 참고하시오

parent 1c531be9
......@@ -5,6 +5,7 @@ using UnityEngine;
public class AnimTest : MonoBehaviour
{
Animator anim;
[Range(-1, 1)] public float xAngle = 0;
private void Start()
{
......@@ -28,5 +29,8 @@ public class AnimTest : MonoBehaviour
anim.SetBool("isShooting", true);
else if (Input.GetKey(KeyCode.H))
anim.SetBool("isShooting", false);
anim.SetLayerWeight(1, Mathf.Abs(xAngle));
anim.SetFloat("xAngle", xAngle);
}
}
This diff is collapsed.
This diff is collapsed.
fileFormatVersion: 2
guid: f99d61cdf18e3574d928b14edbfc5095
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 45ebfca57564d694ebacfdbad1cdc14d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment