public Enumerator(SPAnimClipCollection coll)
 {
     if (coll == null)
     {
         throw new System.ArgumentNullException("coll");
     }
     _coll = coll;
     _e    = _coll._dict.GetEnumerator();
 }
Exemplo 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);
        }