Example #1
0
    public void AniToTarget(CuFrameOption optO) // Animation               _< Update >_
    {                                           // Position Only
        mOptObj = optO;
        //if (parent.name == "LW_BOX_1")

        if (AmIAnimating)
        {
            MyVector = MyVector.IntDivide(targV, mOptObj.optMoveAniSpd, 10);
            float dist = Vector3.Distance(MyVector, targV);
            if (dist < mOptObj.LimitOfPstnAnimation)    // Finishing Animation
            {
                SaveV        = MyVector = targV;
                AmIAnimating = false;
                //ShowMyself (" Animation Finished !!!  ");
            }
        }
        //Ag.LogString (" CuVect :: AniToTarget  >>   [ " + parent.name.LogWith("name") + MyVector.LogWith ("MyVect") + SaveV.LogWith("SaveV") );
    }
Example #2
0
 public void AniSize(CuFrameOption optO)
 {
     //Ag.LogString (" CuVect :: AniSize  >>   [ " + optObj.optMoveAniSpd.LogWith ("Opt"));
     MyVector = MyVector.IntDivide(targV, optO.optSizeAniSpd, 10);
 }