FANDOM


Conversations are GameObjects that store a list of dialogue options that the Player can choose from. They are typically a per-scene object, but this script allows you to create a Conversation whose state is the same in all scenes.

To use it:

  1. Create a new C# script named DontDestroy.cs, and paste in the contents below
  2. Drop a new Conversation in the game's first scene and add the new Dont Destroy Me component
  3. Set the Conversation component's Interaction source field to Asset File, so that responses are determined by ActionList assets, as opposed to those that live in a scene.

DontDestroyMe.cs:

using UnityEngine;
using System.Collections;
using AC;
public class DontDestroyMe : MonoBehaviour
{
private void Start ()
{ DontDestroyOnLoad (gameObject); }
}
Community content is available under CC-BY-SA unless otherwise noted.