コード例 #1
0
 public override void FireEvent()
 {
     if (Instance.Get <SequenceManager>().RealModel != null)
     {
         this.realrole      = Instance.Get <SequenceManager>().RealModel;
         this.realrole.name = "CGMainRole";
         this.realrole.SetActive(true);
         DelegateProxy.DestroyEffect(this.realrole, LayerMask.NameToLayer("Effect"));
         NGUITools.SetLayer(this.realrole, LayerMask.NameToLayer("Default"));
         this.realrole.transform.parent        = base.AffectedObject.transform.parent;
         this.realrole.transform.position      = base.AffectedObject.transform.position;
         this.realrole.transform.localScale    = base.AffectedObject.transform.localScale;
         this.realrole.transform.localRotation = base.AffectedObject.transform.localRotation;
         base.AffectedObject.SetActive(false);
         base.TimelineContainer.AffectedObject = this.realrole.transform;
     }
 }