예제 #1
0
    void Awake()
    {
        character_array = new GameObject[CHARACTER_CAPACITY];
        sprite_empty.SetActive(false);

        for (int i = 0; i < CHARACTER_CAPACITY; i++)
        {
            character_array[i] = GameObject.Instantiate(sprite_empty);
            character_array[i].transform.parent = dialog_sprite.transform;
        }

        DialogueInstructionElement element = DialogueInstructionElement.Text(statement);
        DialogueInstructionElement wait    = DialogueInstructionElement.Wait(1);
        //active_instruction = new DialogueInstruction(new DialogueInstructionElement[] { wait, element }, true);
    }
예제 #2
0
 private DialogueInstructionElement ParseWaitCommand(string command_string)
 {
     string[] args = command_string.Split(':', ',');
     return(DialogueInstructionElement.Wait(Single.Parse(args[1])));
 }