Ejemplo n.º 1
0
        //Inputs method
        void Inputs()
        {
            if (InputManager.Pause)         //If player press pause button
            {
                InputManager.Pause = false; //Unpress
                UIManager.Instance.Pause(); //Show UI pause screen
            }

            //if pause disable and game
            if (!UIManager.Instance.isPause && GameManager.Instance.isGame)
            {
                if (InputManager.Health)         //If player press helath button
                {
                    InputManager.Health = false; //Unpress
                    playerStats.Health();        //Player health hp
                }
            }
        }
Ejemplo n.º 2
0
        //Check active platform
#if UNITY_ANDROID || UNITY_IOS //mobile
        public void HealthBtn()
        {
            playerStats.Health(); //Player health hp
        }