Exemplo n.º 1
0
 public void UpdateCustomMesh(float deltaTime)
 {
     CusMesh.SetScale(Scale.x * OriScaleX, Scale.y * OriScaleY);
     if (Owner.ColorAffectorEnable)
     {
         CusMesh.SetColor(Color);
     }
     CusMesh.SetRotation((float)OriRotateAngle + RotateAngle);
     CusMesh.SetPosition(CurWorldPos);
     CusMesh.Update(false, deltaTime);
 }
Exemplo n.º 2
0
        public void UpdateCustomMesh(float deltaTime)
        {
            CusMesh.SetScale(Scale.x * OriScaleX, Scale.y * OriScaleY, Scale.z * OriScaleZ);
            if (Owner.ColorAffectorEnable)
            {
                CusMesh.SetColor(Color);
            }

            if (Owner.UVAffectorEnable || Owner.UVRotAffectorEnable)
            {
                CusMesh.SetUVCoord(LowerLeftUV, UVDimensions);
            }
            CusMesh.SetRotation((float)OriRotateAngle + RotateAngle);
            CusMesh.SetPosition(CurWorldPos);
            CusMesh.Update(false, deltaTime);
        }