Пример #1
0
    public void AddChild(Transform child, SmartButton sb = null)
    {
        BT temp = new BT();

        temp.child_transform = child;
        temp.child           = sb;

        childs.Add(temp);
    }
Пример #2
0
 public void SetToButton(SmartButton SetToButton)
 {
     if (ManagingButtons.Contains(SetToButton))
     {
         foreach (SmartButton button in ManagingButtons)
         {
             if (button != SetToButton)
             {
                 button.HoverExitButton();
             }
         }
         SetToButton.HoverOverButton();
     }
 }
Пример #3
0
 public static Node PressButton(SmartCharacter user, SmartButton button)
 {
     return new LeafAffordance("Press", user, button);
 }
Пример #4
0
 public static Node CoerceIntoPressingButtonAtCounter(
     SmartCharacter coercer,
     SmartCharacter target,
     SmartButton button,
     SmartBankCounter counter)
 {
     return new Sequence(
         StandInFrontOfCounter(coercer, counter),
         BeginCoerce(coercer, target),
         new LeafWait(2000),
         LeaveCounter(target, counter),
         new LeafWait(1000),
         PressButton(target, button),
         EndCoerce(coercer));
 }
Пример #5
0
 public static Node CoerceIntoPressingButton(
     SmartCharacter coercer, 
     SmartCharacter target, 
     SmartButton button)
 {
     return new Sequence(
         ApproachUpTo(coercer, target, 3.0f),
         BeginCoerce(coercer, target),
         new LeafWait(3000),
         PressButton(target, button),
         EndCoerce(coercer));
 }