public void OverrideToDeactivateLookAt(DeactivatedLookAtParams param, short priority, string id) { LookAtTypeDict.Override(id, priority, param); if (LookAtTypeDict.LastId == id) { ToDeactivatedLookAt(param); } }
private void ToDeactivatedLookAt(DeactivatedLookAtParams param) { lookAtTransform = null; StopLookAt(); if (param.LookAtStyleIndex >= 0) { SetLookAtIKStyle(param.LookAtStyleIndex); } else { SetLookAtIKStyle(player.defaultLookAtIKStyleIndex); } }