void Start() { Seed.setSeed(); Ceilings.findCeilings(); npcHolder = new GameObject("NPCS").transform; npcHolder.gameObject.AddComponent<DontDestroyOnLoad>(); itemManager = GetComponent<ItemManager>(); display = GetComponent<DebugRoomDisplay>(); mansion = GetComponent<Mansion>(); //mansion.setupRooms(); families = new List<Family>(); npcs = new List<Npc>(); npcsWhoKnowTheTruth = new List<Npc>(); relationships = new int[number_of_characters, number_of_characters]; for (int i = 0; i < number_of_characters; i++) { for (int x = 0; x < number_of_characters; x++) { relationships[i, x] = nullRelationship; } } victim = null; murderer = null; TestimonyManager.pg = this; loadNames(); generateCharacters(); gameObject.GetComponent<UIManager>().setupRelationPanel(); createFamilies(); if (motive == Motives.none) selectMotive(); createRelationships(); placeNPCs(); prepareMotive(); createRedHerrings(); bodyFound = false; weaponHidden = false; timeSteps = 0; }
void Awake() { itemsPool = new List<GameObject>(); mansion = gameObject.GetComponent<Mansion>(); }