예제 #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();
 }