public override void DoAction(string ActionToPerform) { if (ActionsMatch("Turn On", ActionToPerform)) { // Debug.Log("Turn Stereo On"); RemoveUI(); playMusic = true; startSounds.Select(); } else if (ActionsMatch("Turn Off", ActionToPerform)) { // Debug.Log("Turn Stereo Off"); musicNotes.SetActive(false); RemoveUI(); stopMusic = true; startSounds.Select(); } else { // Debug.Log("Cancel"); RemoveUI(); } }
void Update() { if (KettleSelected == true) { playerMoveToKettle(); } if (KettleReached == true) { StartCoroutine(MakeCoffeeCup()); StartCoroutine(DrinksReplenishedMessage()); startSounds.Select(); KettleSelected = false; KettleReached = false; } }
public void typing() { if (Input.anyKey) { startSounds.Select(); } }
public override void DoAction(string ActionToPerform) { if (ActionsMatch("Get Food & Drinks", ActionToPerform)) { RemoveUI(); moveToFridge(); startSounds.Select(); fridgeActive = true; started = true; } else { startSounds.Select(); RemoveUI(); } }
public override void DoAction(string ActionToPerform) { if (ActionsMatch("Talk", ActionToPerform)) { Debug.Log("Left the party"); RemoveUI(); MoveToNPC(); startSounds.Select(); NPC_active = true; started = true; } else { startSounds.Select(); Debug.Log("Cancel"); RemoveUI(); } }
public override void DoAction(string ActionToPerform) { if (ActionsMatch("Take Shower", ActionToPerform)) { // Debug.Log("drinking Coffee"); showerSelected = true; setDestinationShower(); RemoveUI(); startSounds.Select(); } else { // Debug.Log("Cancel"); RemoveUI(); } }
public override void DoAction(string ActionToPerform) { if (ActionsMatch("Drink Pre-mix 1.5 Standard Drinks", ActionToPerform)) { // Debug.Log("drinking Alcohol"); alcoholSelected = true; DrinkAlcohol(); RemoveUI(); startSounds.Select(); } else { // Debug.Log("Cancel"); RemoveUI(); } }
public override void DoAction(string ActionToPerform) { if (ActionsMatch("Drink", ActionToPerform)) { // Debug.Log("drinking Coffee"); coffeeSelected = true; DrinkCoffee(); RemoveUI(); startSounds.Select(); } else { // Debug.Log("Cancel"); RemoveUI(); } }
public override void DoAction(string ActionToPerform) { if (ActionsMatch("Dance", ActionToPerform)) { // Debug.Log("drinking Coffee"); DanceFloorSelected = true; GoToDanceFloorPos(); RemoveUI(); startSounds.Select(); } else { // Debug.Log("Cancel"); RemoveUI(); } }
public override void DoAction(string ActionToPerform) { if (ActionsMatch("Turn On", ActionToPerform)) { if (televisionOn == true) { Debug.Log("television is already turned on"); startSounds.Select(); RemoveUI(); } else if (televisionOn == false) { Debug.Log("turned Television on"); turnOn(); startSounds.Select(); RemoveUI(); } } if (ActionsMatch("Turn Off", ActionToPerform)) { if (televisionOn == true) { Debug.Log("television Turned off"); turnOff(); RemoveUI(); startSounds.Select(); } else if (televisionOn == false) { Debug.Log("television is already off"); RemoveUI(); } } if (ActionsMatch("Play 'Rodrigo Racer'", ActionToPerform)) { RodrigoRacerSelected = true; GoToRodrigoRacer(); RemoveUI(); } else { Debug.Log("Cancel"); RemoveUI(); } if (ActionsMatch("Watch Some TV", ActionToPerform)) { HTVSelected = true; GoToHTV(); RemoveUI(); } else { Debug.Log("Cancel"); RemoveUI(); } }