my changes
This commit is contained in:
32
Assets/Scripts/Player/EmoteHandler.cs
Normal file
32
Assets/Scripts/Player/EmoteHandler.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Player
|
||||
{
|
||||
public class EmoteHandler : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private Animator anim;
|
||||
[SerializeField]
|
||||
private string[] animations;
|
||||
[SerializeField]
|
||||
private int emoteNum = 0;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
PlayEmote();
|
||||
}
|
||||
public void PlayEmote()
|
||||
{
|
||||
anim.Play(animations[emoteNum]);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
11
Assets/Scripts/Player/EmoteHandler.cs.meta
Normal file
11
Assets/Scripts/Player/EmoteHandler.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d59be853e517db4f9cb7269206d056f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user