Ejemplo n.º 1
0
        public static AnimationEventObject Create(int frame, AnimationClipEvents parent)
        {
            AnimationEventObject obj = CreateInstance <AnimationEventObject>();

            obj._frame  = frame;
            obj._parent = parent;

            return(obj);
        }
Ejemplo n.º 2
0
        public AnimationEventObject AddAt(int frame)
        {
            var obj = AnimationEventObject.Create(frame, this);

            AnimationEventObjectMap.Add(frame, obj);
            AssetDatabase.AddObjectToAsset(obj, this);
            AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(this));
            return(obj);
        }
Ejemplo n.º 3
0
 public bool TryGetValue(int frame, out AnimationEventObject value)
 {
     return(AnimationEventObjectMap.TryGetValue(frame, out value));
 }