public object GetSaveData() { if (!action) { return(null); } ActionObjectData_v1 data = new ActionObjectData_v1(); data.loadID = LoadID; data.currentPosition = action.transform.position; data.currentRotation = action.transform.rotation; data.currentState = action.CurrentState; if (action.IsMoving) { __ExternalAssets.iTween tween = GetComponent <__ExternalAssets.iTween>(); if (tween) { data.actionPercentage = tween.Percentage; } } return(data); }
public object GetSaveData() { if (!actionDoor) { return(null); } ActionDoorData_v1 data = new ActionDoorData_v1(); data.loadID = LoadID; data.currentLockValue = actionDoor.CurrentLockValue; data.currentRotation = transform.rotation; data.currentState = actionDoor.CurrentState; data.lockpickFailedSkillLevel = actionDoor.FailedSkillLevel; if (actionDoor.IsMoving) { __ExternalAssets.iTween tween = GetComponent <__ExternalAssets.iTween>(); if (tween) { data.actionPercentage = tween.Percentage; } } return(data); }