Пример #1
0
 void Start()
 {
     Fill.color = Gradient.Evaluate(dateSlider.normalizedValue);
     dateLevel  = girlController.GetDateLevel();
     //dateLevel = 2;
     conversant.StartDialogue("Date " + dateLevel);
 }
Пример #2
0
    public void Food()
    {
        Phone.SetActive(false);
        conversant.StartDialogue("ChubhubOrder");
        girlManager.ChangeInactiveCharacterLocation("Victoria", "Home");

        //VictoriaSchedule.ChangeLocation("Home");
    }
Пример #3
0
    // 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);
        }
    }
Пример #4
0
 public void TalkToNPC()
 {
     if (hasMet)
     {
         Debug.Log("Already met");
     }
     else
     {
         AIConversant conversant = GameObject.FindWithTag("LevelManager").GetComponent <AIConversant>();
         conversant.StartDialogue(meetingDialogue);
     }
 }
Пример #5
0
 public void StartBrowsing()
 {
     if (TalkedToShopLady == true)
     {
         Store.SetActive(true);
     }
     else
     {
         conversant.StartDialogue();
         TalkedToShopLady = true;
     }
 }
Пример #6
0
 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");
     }
 }
Пример #7
0
    // 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]);
 }
Пример #9
0
 public void StartDialogue(string convoName)
 {
     Debug.Log("Leaving with convo: " + convoName + " and AIConversant is null?: " + (conversant == null).ToString());
     conversant.StartDialogue(convoName);
 }