/* * private Button flowerButton; * private Button paintingButton; * * private Item item; */ public static NPCPanel3 Instance() { if (!npcPanel3) { npcPanel3 = FindObjectOfType(typeof(NPCPanel3)) as NPCPanel3; if (!npcPanel3) { Debug.LogError("There needs to be one active NPCPanel3 script on a GameObject in your Scene"); } } return(npcPanel3); }
void Awake() { modalPanel = ModalPanel.Instance(); // modalPanel = FindObjectOfType(typeof(ModalPanel)) as ModalPanel; movement = Movement.Instance(); // movement = FindObjectOfType(typeof(Movement)) as Movement; npcPanel3 = NPCPanel3.Instance(); // npcPanel2 = NPCPanel2.Instance(); myYesAction = new UnityAction(TestYesFunction); myNoAction = new UnityAction(TestNoFunction); myCancelAction = new UnityAction(TestCancelFunction); }
void Awake() { movement = Movement.Instance(); npcPanel2 = NPCPanel2.Instance(); npcPanel3 = NPCPanel3.Instance(); }