Esempio n. 1
0
    public void Talk()
    {
        if (Cooldown.ActionReady())
        {
            if (Sentenses.Count == 0)
            {
                IsCreated = false;
                EndTalking();
                return;
            }
            string sentense = Sentenses.Dequeue();

            try
            {
                Text.text = DialogAsset.Names[sentense[0] - 48] + ": ";
            }
            catch (IndexOutOfRangeException)
            {
                Text.text = "INVALID_INDEX: ";
            }

            StopAllCoroutines();
            StartCoroutine(ShowSentense(sentense.Substring(1), Speed));
        }
    }
Esempio n. 2
0
 private void ChangeCondition(Collider2D collision)
 {
     if (Cooldown.ActionReady())
     {
         if (IsClimbing)
         {
             UnFix();
         }
         else
         {
             FixOnLadder(collision);
         }
     }
 }
Esempio n. 3
0
 public void ChangeCondition()
 {
     if (Cooldown.ActionReady())
     {
         if (Closed)
         {
             Open();
         }
         else
         {
             Close();
         }
     }
 }