You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
391 B
28 lines
391 B
11 years ago
|
using UnityEngine;
|
||
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
11 years ago
|
namespace Fungus.Script
|
||
11 years ago
|
{
|
||
11 years ago
|
public class Say : FungusCommand
|
||
11 years ago
|
{
|
||
|
public string text;
|
||
|
|
||
11 years ago
|
public override void OnEnter()
|
||
11 years ago
|
{
|
||
|
Dialog dialog = Game.GetInstance().dialog;
|
||
11 years ago
|
if (dialog == null)
|
||
11 years ago
|
{
|
||
11 years ago
|
Continue();
|
||
|
return;
|
||
11 years ago
|
}
|
||
|
|
||
|
dialog.Say (text, delegate {
|
||
11 years ago
|
Continue();
|
||
11 years ago
|
});
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|