private void NPCMenuButton_Click(object sender, RoutedEventArgs e) { NPCGen ng = new NPCGen(this); this.Close(); ng.Show(); }
// Use this for initialization void Start() { ai = GameObject.Find("NPCs"); go = GameObject.Find("Computer"); npcg = ai.GetComponent <NPCGen>(); com = go.GetComponent <Computer>(); def = go.GetComponent <Defalt>(); sc = go.GetComponent <SoundControl>(); native_height = Customize.cust.native_height; native_width = Customize.cust.native_width; CloseButton = new Rect(375, 5, 21, 21); }