void Awake() { verticleDir = transform.up; forwardDir = transform.forward; sideDir = transform.right; rb = GetComponent<Rigidbody>(); playerState = CharacterStates.Idle; if (!instance) instance = this; }
void Awake() { verticleDir = transform.up; forwardDir = transform.forward; sideDir = transform.right; rb = GetComponent <Rigidbody>(); playerState = CharacterStates.Idle; if (!instance) { instance = this; } }