Пример #1
0
 public bool Execute(GadgetIdentifier ident)
 {
     if (ident == keyGadget)
     {
         MessageSystem.GetInstance().StartDialogue(message);
         return(true);
     }
     return(false);
 }
Пример #2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         MainCharacterAttributes attr = other.gameObject.GetComponent <MainCharacterAttributes>();
         if (attr.heldSkull == skull)
         {
             MessageSystem.GetInstance().StartDialogue("Danke :)");
         }
     }
 }
Пример #3
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Dog")
        {
            DogAttributes attr = other.GetComponent <DogAttributes>();

            if (attr.heldSkull == Skulls.Jacques)
            {
                MessageSystem.GetInstance().StartDialogue(text);

                SwitchControl.HumanHasSkull = true;
                attr.heldSkull = Skulls.None;
            }
        }
    }
Пример #4
0
 void Start()
 {
     system = MessageSystem.GetInstance();
 }
Пример #5
0
 private void Start()
 {
     messenger = MessageSystem.GetInstance();
 }