private void ToLookAtTransform(LookAtTransformParams param) { lookAtTransform = param.LookAtTransform; currentReferenceTransform = param.ReferenceTransform; StartToLookAt(param.LookAtTransform); if (param.LookAtStyleIndex >= 0) { SetLookAtIKStyle(param.LookAtStyleIndex); } else { SetLookAtIKStyle(player.defaultLookAtIKStyleIndex); } }
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); } }