void Start() { Fill.color = Gradient.Evaluate(dateSlider.normalizedValue); dateLevel = girlController.GetDateLevel(); //dateLevel = 2; conversant.StartDialogue("Date " + dateLevel); }
public void Food() { Phone.SetActive(false); conversant.StartDialogue("ChubhubOrder"); girlManager.ChangeInactiveCharacterLocation("Victoria", "Home"); //VictoriaSchedule.ChangeLocation("Home"); }
// Display conversation based on capacity private void CapacityReached() { foodUI.SetActive(false); AIConversant conversant = GetComponent <AIConversant>(); if (capacity >= 100) { capacity = 100; int randomConvo = UnityEngine.Random.Range(0, numMaxFullConvos) + 1; conversant.StartDialogue("Max Full " + randomConvo); } else { int randomConvo = UnityEngine.Random.Range(0, numFullConvos) + 1; conversant.StartDialogue("Full " + randomConvo); GetComponent <GirlController>().ModifyBellyCapacity(5); } }
public void TalkToNPC() { if (hasMet) { Debug.Log("Already met"); } else { AIConversant conversant = GameObject.FindWithTag("LevelManager").GetComponent <AIConversant>(); conversant.StartDialogue(meetingDialogue); } }
public void StartBrowsing() { if (TalkedToShopLady == true) { Store.SetActive(true); } else { conversant.StartDialogue(); TalkedToShopLady = true; } }
public void TryToWork() { if (PlayerStats.Instance.CurrentJob != 0) { if (PlayerStats.Instance.Energy == 0) { NoEnergy(); } else if (PlayerStats.Instance.Energy < 15 && PlayerStats.Instance.Energy > 0) { NotEnoughEnergy(); } else { PlayerStats.Instance.Energy -= 15; GameObject.FindGameObjectWithTag("GameController").GetComponent <LoadingScreenScript>().Work(); } } else { conversant.StartDialogue("No Job"); } }
// Leave scene via button public void TryLeaving() { Scheduler schedule = GetComponent <Scheduler>(); schedule.ResetLocation(); if (fullness <= capacity) { AIConversant conversant = GetComponent <AIConversant>(); conversant.StartDialogue("Out of Food"); } else { LoadingScreenScript loadingScreenScript = GameObject.FindWithTag("GameController").GetComponent <LoadingScreenScript>(); loadingScreenScript.LoadNewArea("Home"); } }
private void Start() { convo.StartDialogue(dialogues[0]); }
public void StartDialogue(string convoName) { Debug.Log("Leaving with convo: " + convoName + " and AIConversant is null?: " + (conversant == null).ToString()); conversant.StartDialogue(convoName); }