-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHashIDs.cs
37 lines (33 loc) · 1.13 KB
/
HashIDs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using UnityEngine;
using System.Collections;
public class HashIDs : MonoBehaviour
{
// Here we store the hash tags for various strings used in our animators.
public int dyingState;
public int locomotionState;
public int shoutState;
public int deadBool;
public int speedFloat;
public int sneakingBool;
public int shoutingBool;
public int playerInSightBool;
public int shotFloat;
public int aimWeightFloat;
public int angularSpeedFloat;
public int openBool;
void Awake ()
{
// dyingState = Animator.StringToHash("Base Layer.Dying");
locomotionState = Animator.StringToHash("Base Layer.Locomotion");
// shoutState = Animator.StringToHash("Shouting.Shout");
// deadBool = Animator.StringToHash("Dead");
speedFloat = Animator.StringToHash("Speed");
// sneakingBool = Animator.StringToHash("Sneaking");
// shoutingBool = Animator.StringToHash("Shouting");
playerInSightBool = Animator.StringToHash("PlayerInSight");
// shotFloat = Animator.StringToHash("Shot");
// aimWeightFloat = Animator.StringToHash("AimWeight");
angularSpeedFloat = Animator.StringToHash("AngularSpeed");
// openBool = Animator.StringToHash("Open");
}
}