Esempio n. 1
0
    public override void OnClick()
    {
        var inventory = Inventory.GetInstance();

        if (inventory.GetSelected() && inventory.GetSelected().collectibleName == "money")
        {
            updater.Trigger();
            inventory.Remove(inventory.GetSelected());
            ispaid = true;
        }
    }
Esempio n. 2
0
    public void OnEnter()
    {
        gameObject.SetActive(true);
        if (updater)
        {
            updater.Trigger();
        }

        if (halinka)
        {
            halinka.OnScreenExit();
        }
    }
Esempio n. 3
0
    public override void OnClick()
    {
        var inventory = Inventory.GetInstance();

        if (inventory.GetSelected())
        {
            if (inventory.GetSelected().name == "bottle")
            {
                piwo.Trigger();
                inventory.Remove(inventory.GetSelected());
            }
        }
    }
Esempio n. 4
0
    override public void OnClick()
    {
        current.GetComponent <Screen>().OnLeave();
        var pos = Camera.main.transform.position;

        pos.x = screen.transform.position.x;
        pos.y = screen.transform.position.y;
        Camera.main.transform.position = pos;
        screen.GetComponent <Screen>().OnEnter();

        Debug.Log("Setting cam pos to " + pos + " obj: " + screen);

        if (updater)
        {
            updater.Trigger();
        }
    }