Exemplo n.º 1
0
 private void Start()
 {
     locked = true;
     menu   = GameObject.Find("Basic Pause Menu").GetComponent <MenuDisplayer>();
     initialize();
     activate(false);
 }
	void Awake()
	{
		if (instance == null)
			instance = this;
		else if (instance != this)
			Destroy (this.gameObject);
	}
    private void Start()
    {
        locked      = true;
        pauseOnOpen = true;

        menu = GameObject.Find("Basic Pause Menu").GetComponent <MenuDisplayer>();
        close1.GetComponent <Button>().onClick.AddListener(delegate
                                                           { UIManager.Instance.ToggleActive(this); });
        close2.GetComponent <Button>().onClick.AddListener(delegate
                                                           { UIManager.Instance.ToggleActive(this); });

        Systems.Input.RegisterKey("h", delegate
        {
            UIManager.Instance.ToggleActive(this);
        });
        initialize();
        toggler.SetActive(false);
        opened = false;
    }
    private void Start()
    {
        pauseOnOpen = true;
        locked      = true;

        selectedItem = 0;
        // capacity = Systems.Inventory.GetCapacity();
        capacity  = 8; // Temporary kludge
        itemSlots = new Image[capacity];
        amounts   = new byte[] { 0 };
        items     = new Item[capacity];

        menu = GameObject.Find("Basic Pause Menu").GetComponent <MenuDisplayer>();

        initialize();
        activate(false);
        Systems.Input.RegisterKey("i", delegate
        {
            UIManager.Instance.ToggleActive(this);
            inventoryFlasher.ThrobOff();
        }
                                  );
    }