protected override void DoAnim()
 {
     if (this.subTrans == null)
     {
         base._stop();
         return;
     }
     this.factor = this.timeElapsed / this.interval;
     this.temp.x = this.start.x + EZAnimation.punch(this.magnitude.x, this.factor);
     this.temp.y = this.start.y + EZAnimation.punch(this.magnitude.y, this.factor);
     this.temp.z = this.start.z + EZAnimation.punch(this.magnitude.z, this.factor);
     this.subTrans.localRotation = Quaternion.Euler(this.temp);
 }
Пример #2
0
    protected override void DoAnim()
    {
        if (this.subTrans == null)
        {
            base._stop();
            return;
        }
        float num  = EZAnimation.punch(this.magnitude.x, this.factor);
        float num2 = EZAnimation.punch(this.magnitude.x, this.factor);
        float num3 = EZAnimation.punch(this.magnitude.x, this.factor);

        this.factor = this.timeElapsed / this.interval;
        this.temp.x = this.start.x + num;
        this.temp.y = this.start.y + num2;
        this.temp.z = this.start.z + num3;
        this.subTrans.localScale    = this.temp;
        this.temp2.x                = this.startPosition.x - this.startWidth * 0.5f * num;
        this.temp2.y                = this.startPosition.y + this.startHeight * 0.5f * num2;
        this.temp2.z                = this.startPosition.z;
        this.subTrans.localPosition = this.temp2;
    }