예제 #1
0
 private void OnDestroy()
 {
     if (CoreDialogue.instance == this)
     {
         CoreDialogue.instance = null;
     }
 }
예제 #2
0
    private void Awake()
    {
        if (CoreDialogue.instance != null)
        {
            GameObject.Destroy(gameObject);
        }
        else
        {
            CoreDialogue.instance = this;
        }

        allBlurbs = GetAllBlurbs();

        allNpcs = new Dictionary <string, int>();
        allNpcs.Add("head_1", 0);
        allNpcs.Add("pride_1", 0);
        allNpcs.Add("envy_1", 0);
        allNpcs.Add("wrath_1", 0);
        allNpcs.Add("lust_1", 0);
        allNpcs.Add("greed_1", 0);
        allNpcs.Add("gluttony_1", 0);
        allNpcs.Add("sloth_1", 0);
    }