コード例 #1
0
 public void CallOnPinHasGottenBackUp(UBowlingPinComponent _pin)
 {
     if (OnPinHasGottenBackUp != null)
     {
         OnPinHasGottenBackUp(_pin);
     }
 }
コード例 #2
0
 public void CallOnPinHasFallen(UBowlingPinComponent _pin)
 {
     if (OnPinHasFallen != null)
     {
         OnPinHasFallen(_pin);
     }
     //if (OnPinHasFallenDelegate.IsBound)
     //{
     //    OnPinHasFallenDelegate.Invoke(_pin);
     //}
 }
コード例 #3
0
        void UpdatePinHasStandingDictionary(UBowlingPinComponent _pin, bool _fallen)
        {
            string _key = _pin.MyOwner.GetName();

            if (AllPinsStandingDictionary.ContainsKey(_key))
            {
                AllPinsStandingDictionary[_key] = !_fallen;
                int _pinStandingCount = 0;
                foreach (bool _pinStanding in AllPinsStandingDictionary.Values)
                {
                    if (_pinStanding)
                    {
                        _pinStandingCount++;
                    }
                }
                gamemaster.CallOnUpdatePinCount(_pinStandingCount);
            }
        }
コード例 #4
0
 void PinGottenBackUp(UBowlingPinComponent _pin)
 {
     UpdatePinHasStandingDictionary(_pin, false);
 }
コード例 #5
0
 void PinHasFallen(UBowlingPinComponent _pin)
 {
     UpdatePinHasStandingDictionary(_pin, true);
 }