Exemplo n.º 1
0
        public StateNotice()
        {
            InitializeComponent();
            one = new ShowOne();
            UIList.Add(one);
            two = new ShowTwo();
            UIList.Add(two);
            three = new ShowThree();
            UIList.Add(three);

            this.Loaded += StateNotice_Loaded;
        }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        if (Value.Value == 5)
        {
            ShowFive.Invoke();
        }

        if (Value.Value == 4)
        {
            ShowFour.Invoke();
        }

        if (Value.Value == 3)
        {
            ShowThree.Invoke();
        }

        if (Value.Value == 2)
        {
            ShowTwo.Invoke();
        }

        if (Value.Value == 1)
        {
            ShowOne.Invoke();
        }

        if (Value.Value == 0)
        {
            ShowZero.Invoke();
        }

        if (Input.GetKeyDown(KeyCode.E))
        {
            if ((Value.Value <= 5 && Value.Value > 0) && Image.fillAmount < 1)
            {
                HealthIncrease.Invoke();
                EDown.Invoke();
            }
        }
    }