//-------------------------------------------------------------------------------------------------------------
 public virtual void OnTransitionExitStart(STSTransitionData sData, STSEffectType sEffect, bool sActiveScene)
 {
     if (ActiveLog == true)
     {
         Debug.Log("<color=" + LogTagColor.ToString() + ">" + this.gameObject.scene.name + "</color> OnTransitionExitStart()");
     }
 }
示例#2
0
        //-------------------------------------------------------------------------------------------------------------
        public void CopyFrom(STSEffectType sObject)
        {
            EffectName       = sObject.EffectName;
            TintPrimary      = sObject.TintPrimary;
            TintSecondary    = sObject.TintSecondary;
            TexturePrimary   = sObject.TexturePrimary;
            TextureSecondary = sObject.TextureSecondary;

            ParameterOne   = sObject.ParameterOne;
            ParameterTwo   = sObject.ParameterTwo;
            ParameterThree = sObject.ParameterThree;

            TwoCross   = sObject.TwoCross;
            FourCross  = sObject.FourCross;
            FiveCross  = sObject.FiveCross;
            EightCross = sObject.EightCross;
            NineCross  = sObject.NineCross;

            Clockwise = sObject.Clockwise;

            Duration = sObject.Duration;
            Purcent  = sObject.Purcent;
            if (sObject.Curve != null)
            {
                Curve = new AnimationCurve(sObject.Curve.keys);
            }
            else
            {
                Curve = AnimationCurve.Linear(0.0F, 0.0F, 1.0F, 1.0F);
            }
        }
 //-------------------------------------------------------------------------------------------------------------
 public override void OnTransitionEnterStart(STSTransitionData sData, STSEffectType sEffect, float sInterludeDuration, bool sActiveScene)
 {
     base.OnTransitionEnterStart(sData, sEffect, sInterludeDuration, sActiveScene);
     if (Gauge != null)
     {
         Gauge.SetHidden(true);
         Gauge.HorizontalValue = 0.0F;
     }
 }
示例#4
0
        //-------------------------------------------------------------------------------------------------------------
        public STSEffectType Dupplicate()
        {
            STSEffectType tCopy = new STSEffectType(this);

            return(tCopy);
        }
示例#5
0
 //-------------------------------------------------------------------------------------------------------------
 public STSEffectType(STSEffectType sObject)
 {
     CopyFrom(sObject);
 }
 //-------------------------------------------------------------------------------------------------------------
 public void OnTransitionExitStart(STSTransitionData sData, STSEffectType sEffect, bool sActiveScene)
 {
     //throw new System.NotImplementedException();
 }
 //-------------------------------------------------------------------------------------------------------------
 public void OnTransitionEnterStart(STSTransitionData sData, STSEffectType sEffect, float sInterludeDuration, bool sActiveScene)
 {
     //throw new System.NotImplementedException();
 }