Пример #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;
        }
Пример #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;
        }