Exemplo n.º 1
0
        public MTRotateByState(MTRotateBy action, GameObject target)
            : base(action, target)
        {
            AngleX = action.AngleX;
            AngleY = action.AngleY;
            AngleZ = action.AngleZ;

            StartAngleX = target.transform.localRotation.x;
            StartAngleY = target.transform.localRotation.y;
            StartAngleZ = target.transform.localRotation.z;
        }
Exemplo n.º 2
0
        public MTRotateByState(MTRotateBy action, GameObject target)
            : base(action, target)
        {
            AngleX = action.AngleX;
            AngleY = action.AngleY;
            AngleZ = action.AngleZ;

            StartAngleX = target.transform.localRotation.x;
            StartAngleY = target.transform.localRotation.y;
            StartAngleZ = target.transform.localRotation.z;
        }