public bool Execute(GadgetIdentifier ident) { if (ident == keyGadget) { MessageSystem.GetInstance().StartDialogue(message); return(true); } return(false); }
void OnTriggerEnter(Collider other) { if (other.tag == "Player") { MainCharacterAttributes attr = other.gameObject.GetComponent <MainCharacterAttributes>(); if (attr.heldSkull == skull) { MessageSystem.GetInstance().StartDialogue("Danke :)"); } } }
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; } } }
void Start() { system = MessageSystem.GetInstance(); }
private void Start() { messenger = MessageSystem.GetInstance(); }