Exemple #1
0
 public virtual void initByChildInfo(FlashUtils.ChildInfo childInfo_, MovieClip parentMovieClip_)
 {
     childInfo        = childInfo_;
     propertyInFrames = childInfo_.propertyInFrames;
     gameObject.name  = childInfo_.insName;
     _beginFrame      = childInfo_.beginFrame;
     xyChanged        = childInfo_.xyChanged;
     sxyChanged       = childInfo_.sxyChanged;
     roChanged        = childInfo_.roChanged;
     rgbChanged       = childInfo_.rgbChanged;
     aChanged         = childInfo_.aChanged;
     parentMovieClip  = parentMovieClip_;
 }
Exemple #2
0
        public virtual void OnDestroy()
        {
            selfTrans        = null;
            parentMovieClip  = null;
            childInfo        = null;
            propertyInFrames = null;
            FlashManager _flashManager = FlashManager.getInstance();

            if (_flashManager != null)
            {
                _flashManager.displayObjectCount--;
            }
        }
Exemple #3
0
 public override void initByChildInfo(FlashUtils.ChildInfo childInfo_, MovieClip parentMovieClip_)
 {
     base.initByChildInfo(childInfo_, parentMovieClip_);
     gameObject.GetComponent <SortingGroup> ().sortingOrder = childInfo.childIndex;
 }
Exemple #4
0
        //Create as a MainNode or not.
        public virtual void resetByTimeLineInfo(FlashUtils.MCTimeLineInfo mcTimeLineInfo_, MovieClip mainMovieClip_)
        {
            mcTimeLineInfo                = mcTimeLineInfo_;
            movieClipClassName            = mcTimeLineInfo.className;
            _childrenNeverRemoveFromStage = mcTimeLineInfo.childrenNeverRemoveFromStage;
            _allChildrenSprite            = mcTimeLineInfo.allChildrenSprite;
            _frameIntToFrameActionCache   = FlashUtils.getFrameIntToFrameActionCache(mcTimeLineInfo);
            _codeControlFrameAction       = new CodeControlFrameAction(FlashUtils.FrameNameType.none);

            if (mainMovieClip_ == null)
            {
                _isMainMovieClip = true;
                gameObject.name  = mcTimeLineInfo.className;
                spriteFromAltas  = true;
                setMainMovieClip(this);
                FlashManager.getInstance().mainMovieClipList.Add(this);
            }
            else
            {
                _isMainMovieClip = false;
                setMainMovieClip(mainMovieClip_);
            }

            if (_isMainMovieClip)
            {
                resetParsWhenOnOrOffStage(true);
            }

            if (_childrenNeverRemoveFromStage)         //Add all child to stage.
            {
                putAllChildOnStage();                  //Because there is no remove.
            }

            frameUpdate();              //Must do once frameUpdate.To move to frame 1 right now.
        }
Exemple #5
0
 public void createMovieClip()    //Create MovieClip When FlashManager._ins created.
 {
     _mainMovieClip = FlashUtils.getMovieClipByClassNameAndAddTo(className, gameObject);
     _mainMovieClip.selfTrans.localPosition = new Vector3(0f, 0f, 0f);
 }
Exemple #6
0
 public override void initByChildInfo(FlashUtils.ChildInfo childInfo_, MovieClip parentMovieClip_)
 {
     base.initByChildInfo(childInfo_, parentMovieClip_);
     resetSprite(true);
     spriteRenderer.sortingOrder = childInfo.childIndex; //Sort order in current container.
 }
Exemple #7
0
 public void setMainMovieClip(MovieClip mainMovieClip_)
 {
     _mainMovieClip = mainMovieClip_;
 }