//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 } } }
//Check active platform #if UNITY_ANDROID || UNITY_IOS //mobile public void HealthBtn() { playerStats.Health(); //Player health hp }