/// <summary> /// Registers an event that the call animation has finished and executes the script. /// </summary> public void OnCallMade() { if (_isWaitingForCall && isActiveAndEnabled) { _isWaitingForCall = false; Call.Make(_actor); Message("OnBackupCall"); } }
/// <summary> /// Registers an event that the call animation has finished and executes the script. /// </summary> public void OnCallMade() { if (_isWaitingForCall && isActiveAndEnabled) { _isWaitingForCall = false; Call.Make(_actor); Message("OnCopCall"); if (FleeAfterCall) { Message("ToBecomeScared"); } } }