Blade & Sorcery
0 of 0

File information

Last updated

Original upload

Created by

Ebediam

Uploaded by

Ebediam

Virus scan

Safe to use

Tags for this mod

About this mod

THIS MOD WILL NOT WORK WITH U7! KospY's key to his private hideout! Find the key in the "Misc" category. Press trigger to be instantly teleported to KospY's hideout, the one with the climbing tower!

Permissions and credits
Changelogs
Here's the code. Super simple, really:

public class ItemKospyKey : MonoBehaviour
    {
        protected Item item;
        
        

        protected void Awake()
        {
            Debug.Log("Available levels: ");
            Debug.Log(GameManager.GetAvailableLevels());
            item = this.GetComponent<Item>();

           
            item.OnHeldActionEvent += OnKeyHeldAction;

            


        }

        void OnKeyHeldAction(Interactor interactor, Handle handle, Interactable.Action action)
        {
                if (action == Interactable.Action.UseStart)
                {
                    GameManager.LoadLevel("test");

                }
            
        }

    }