void Update() { if (m_Game_Manager.mGame == GameMode.PLAY_MODE) { m_Game_Manager.LimitMap(this.transform); // Animation -- if we Use it PlayerAnimation(); // Catch The Cat if (Input.GetKeyDown(KeyCode.Space) && isCatch) { if (m_Game_Manager.currntCat != null) { Cat _Cat = m_Game_Manager.currntCat.GetComponent <Cat> (); // Debug.Log(" Health " + _Cat._Health); _Cat.OnDelogShow(_Cat); audioClip_Catch.Play(); } } if (Input.GetKeyDown(KeyCode.R) && _TakeMedicine) { m_Game_Manager._Medicine += 5; _TakeMedicine = false; Destroy(_goMedicine); if (_goMedicine != null) { _goMedicine = null; } } if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) { m_Speed = m_DeSpeed; } else { m_Speed = m_NormalSpeed; } } }