public void OverrideLocomoteStatic(LocomoteStaticParams param, short priority, string id) { if (param.TurnToObject == null) { Debug.Log("Turn to object is null, turned movement won't work..."); return; } LocomTypeDict.Override(id, priority, param); if (LocomTypeDict.LastId == id) { ToStatic(param); } }
public void OverrideLookAtTransform(LookAtTransformParams param, short priority, string id) { if (param.LookAtTransform == null) { Debug.Log("Lookat object is null, looking at failed"); return; } if (param.ReferenceTransform == null) { Debug.Log("Reference look transform is null, looking at failed"); return; } LookAtTypeDict.Override(id, priority, param); if (LookAtTypeDict.LastId == id) { ToLookAtTransform(param); } }
public void OverrideCamera(CameraModderParamsBase _params, short priority, string id) { if (camTypeDict.IsOverridenWithKey(id)) { Debug.Log("Camera already overritten with this key (skipping camera override) :" + id.ToString()); return; } CameraModderParamsBase x = camTypeDict.LastValue; camTypeDict.Override(id, priority, _params); if (id == camTypeDict.LastId) { TransitTo(x, _params, true); } }