using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ORKFramework;
using ORKFramework.Behaviours;
public class Flying : StateMachineBehaviour
{
override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
{
ORK.Game.Variables.Set ("Flying", true);
ORK.Game.Variables.Check ("Flying", true);
Debug.Log ("Flying");
}
}
Basically I just want to set a Global Variable called "Flying" to true when the Fly State of the animator is entered.It looks like you're new here. If you want to get involved, click one of these buttons!
Your variable code looks correct.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!