public void RestoreSaveData(object dataIn) { ActionObjectData_v1 data = (ActionObjectData_v1)dataIn; if (data.loadID == LoadID) { action.transform.position = data.currentPosition; action.transform.rotation = data.currentRotation; action.CurrentState = data.currentState; action.RestartTween(1 - data.actionPercentage); } }