Beispiel #1
0
    // Key has been collected
    public void KeyCollected(GameObject key)
    {
        Debug.Log("Key collected!");

        // Count the collected key
        questManager.KeyCollected(key.GetComponent <Key>().Index());

        // Set the screen ui
        hud.AddKey(key.GetComponent <Key>().GetHUDItemKey(), key.GetComponent <Key>().GetColour());
    }