public void ReleaseOverrideLocomoteType(string id) { if (LocomTypeDict.IsOverridenWithKey(id)) { LocomTypeDict.Release(id); if (LocomTypeDict.LastValue.GetType() == typeof(LocomoteFreeParams)) { ToFree(LocomTypeDict.LastValue as LocomoteFreeParams); } else if (LocomTypeDict.LastValue.GetType() == typeof(LocomoteStaticParams)) { ToStatic(LocomTypeDict.LastValue as LocomoteStaticParams); } else if (LocomTypeDict.LastValue.GetType() == typeof(LocomoteWithAgentFreeToTransformParams)) { ToAgentFreeToTransform(LocomTypeDict.LastValue as LocomoteWithAgentFreeToTransformParams); } else if (LocomTypeDict.LastValue.GetType() == typeof(DeactivatedLocomLayerParams)) { ToDeactivatedLayer(LocomTypeDict.LastValue as DeactivatedLocomLayerParams); } } else { Debug.Log("No such key found in locomotion types :" + id); } }
public void ReleaseOverride(string id) { if (!camTypeDict.Contains(id)) { Debug.Log("No such key-id found, skipping Release camera... id: " + id); return; } CameraModderParamsBase x = camTypeDict.LastValue; camTypeDict.Release(id); TransitTo(x, camTypeDict.LastValue, true); }
public void ReleaseOverrideLookAt(string id) { if (LookAtTypeDict.IsOverridenWithKey(id)) { LookAtTypeDict.Release(id); if (LookAtTypeDict.LastValue.GetType() == typeof(LookAtTransformParams)) { ToLookAtTransform(LookAtTypeDict.LastValue as LookAtTransformParams); } else if (LookAtTypeDict.LastValue.GetType() == typeof(LookAtPositionParams)) { ToLookAtPosition(LookAtTypeDict.LastValue as LookAtPositionParams); } else if (LookAtTypeDict.LastValue.GetType() == typeof(DeactivatedLookAtParams)) { ToDeactivatedLookAt(LookAtTypeDict.LastValue as DeactivatedLookAtParams); } else if (LookAtTypeDict.LastValue.GetType() == typeof(LookAtParams)) { StopLookAt(); SetLookAtIKStyle(LookAtTypeDict.LastValue.LookAtStyleIndex); } } }