public object Clone() { ActionEvent_Animation ret = new ActionEvent_Animation(); ret.mActionType = mActionType; ret.mTime = mTime; ret.mCMD = mCMD; ret.mAnimationType = mAnimationType; ret.mAniName = mAniName; ret.mAniWarp = mAniWarp; return(ret); }
public static ActionEvent CreateActionEvent(ActionObject.ActionType _actionType) { ActionEvent ae = null; switch (_actionType) { case ActionObject.ActionType.Prefab: ae = new ActionEvent_Prefab(); break; case ActionObject.ActionType.Transform: break; case ActionObject.ActionType.Material: break; case ActionObject.ActionType.Animation: ae = new ActionEvent_Animation(); break; case ActionObject.ActionType.Sound: ae = new ActionEvent_Sound(); break; case ActionObject.ActionType.Camera: ae = new ActionEvent_Camera(); break; case ActionObject.ActionType.WaitTime: break; case ActionObject.ActionType.CharacterControl: ae = new ActionEvent_CharacterControl(); break; case ActionObject.ActionType.Tween: break; case ActionObject.ActionType.LaunchAmmo: break; case ActionObject.ActionType.MoveToPosition: break; } return(ae); }