public static CharacterSelectorDialogue GetInstance() { if(instance == null){ GameObject BO = Brain.GetInstance().gameObject; instance = BO.GetComponent<CharacterSelectorDialogue>(); if (instance == null) instance = BO.AddComponent<CharacterSelectorDialogue>(); } return instance; }
CharacterSelectorDialogue() { instance = this; }