public static int GetCurrentFrame() { if (AnimationWindow == null) { return(-1); } return((int)FrameProperty.GetValue(GetState(), null)); }
public static int GetCurrentFrame() { if (AnimationWindow == null) { return(-1); } #if UNITY_5_0 return((int)FrameField.GetValue(GetState())); #else return((int)FrameProperty.GetValue(GetState(), null)); #endif }