Created
December 1, 2019 09:07
-
-
Save inertiave/75e0b11bdc32f025a784373ebd61a895 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace CQ.Test { | |
public class CurveAssetUsage : MonoBehaviour { | |
public AnimationCurveAsset curveAsset; | |
AnimationCurve currentCurve; | |
// Scriptable Object 에서 커브 데이터를 가져다 커브로 사용할 때 | |
void SetCurve(AnimationCurveAsset curve) | |
{ | |
currentCurve = curveAsset; | |
} | |
// 커브 데이터를 Scriptable Object 에 저장 할 때 | |
void CacheCurve(AnimationCurve curve) | |
{ | |
curveAsset = curve; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment