Ejemplo n.º 1
0
 public Enumerator(SPAnimClipCollection coll)
 {
     if (coll == null)
     {
         throw new System.ArgumentNullException("coll");
     }
     _coll = coll;
     _e    = _coll._dict.GetEnumerator();
 }
Ejemplo n.º 2
0
        protected override void Awake()
        {
            base.Awake();

            if (_mask == null)
            {
                _mask = new AnimControllerMaskSerializedRef();
            }
            if (_states == null)
            {
                _states = new SPAnimClipCollection();
            }

            _animation = this.AddOrGetComponent <Animation>();
            _animation.playAutomatically = false;

            _states.InitMasterCollection(this);
            //_states.Init(this, null);
        }