예제 #1
0
 /// <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");
     }
 }
예제 #2
0
        /// <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");
                }
            }
        }