Example #1
0
    // Use this for initialization
    void Start()
    {
        npc    = GetComponent <NPCWaypoint>();
        hpLeft = hits;
        Controller.Get.Inventory.AddItemListener("wallet", DoWallet);
        Controller.Get.Inventory.AddItemListener("bat", DoBat);
        Controller.BlueRoomResult = Controller.Completion.None;
        Controller.startDoor      = Controller.DoorColor.Blue;

        // Clear the bat
        if (Controller.Get.Inventory.HasPersistentItem("bat"))
        {
            Controller.Get.Inventory.RemoveItem("bat");
        }
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        npc            = GetComponent <NPCWaypoint>();
        flameCountdown = flameTime;
        Controller.Get.Inventory.AddItemListener("lighter", DoLighter);
        Controller.Get.Inventory.AddItemListener("flashlight", DoFlashlight);
        Controller.YellowRoomResult = Controller.Completion.None;
        Controller.startDoor        = Controller.DoorColor.Yellow;

        // Clear the bat
        if (Controller.Get.Inventory.HasPersistentItem("lighter"))
        {
            Controller.Get.Inventory.RemoveItem("lighter");
        }
    }