예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (Vector3.Distance(Laika.transform.position, transform.position) < 2f)
        {
            //Display tooltip

            if (Input.GetButtonDown("Interact"))
            {
                Shop.Activate();
            }
        }
    }
예제 #2
0
        public override void Load()
        {
            Instance = this;
            Console  = this.Logger;

            if (!Main.dedServ)
            {
                // Custom UI
                m_ShopUI = new ShopUI();
                m_ShopUI.Activate();

                UserInterface = new UserInterface();
            }

            Config.Load();
        }