Beispiel #1
0
 public KeyValuePairs(StringVariable key, StringPair[] stringPairs = null, IntPair[] intPairs = null, FloatPair[] floatPairs = null, BoolPair[] boolPairs = null, Vector2Pair[] vector2Pairs = null)
 {
     this.key          = key;
     this.stringPairs  = stringPairs;
     this.intPairs     = intPairs;
     this.floatPairs   = floatPairs;
     this.boolPairs    = boolPairs;
     this.vector2Pairs = vector2Pairs;
 }
        public bool IsPlaying(StringVariable clipName, int layer)
        {
            foreach (var clipInfo in animator.GetCurrentAnimatorClipInfo(layer))
            {
                if (clipInfo.clip.name == clipName.runtimeValue)
                {
                    return(true);
                }
            }

            return(false);
        }
Beispiel #3
0
 public BoolPair(StringVariable key, bool value)
 {
     this.key   = key;
     this.value = value;
 }
Beispiel #4
0
 public Vector2Pair(StringVariable key, Vector2 value)
 {
     this.key   = key;
     this.value = value;
 }
Beispiel #5
0
 public FloatPair(StringVariable key, float value)
 {
     this.key   = key;
     this.value = value;
 }
Beispiel #6
0
 public IntPair(StringVariable key, int value)
 {
     this.key   = key;
     this.value = value;
 }
Beispiel #7
0
 public StringPair(StringVariable key, string value)
 {
     this.key   = key;
     this.value = value;
 }
Beispiel #8
0
 public void TransitionToState(StringVariable ID)
 {
     TransitionToState(ID.runtimeValue);
 }
Beispiel #9
0
 public bool IsState(StringVariable ID)
 {
     return(IsState(ID.runtimeValue));
 }