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)); } }
private void ChangeCondition(Collider2D collision) { if (Cooldown.ActionReady()) { if (IsClimbing) { UnFix(); } else { FixOnLadder(collision); } } }
public void ChangeCondition() { if (Cooldown.ActionReady()) { if (Closed) { Open(); } else { Close(); } } }