void GetInput() { if (transform.position.y < 3.5) { if (Input.GetKey(key_moveUp)) { transform.Translate(Vector2.up * m_currentSpeed_y * Time.deltaTime); } } if (transform.position.y > -1.35) { if (Input.GetKey(key_moveDown)) { transform.Translate(-Vector2.up * m_currentSpeed_y * Time.deltaTime); } } if (transform.position.x < 3.5) { if (Input.GetKey(key_moveRight)) { transform.Translate(Vector2.right * m_currentSpeed_x * Time.deltaTime); } } if (transform.position.x > -6.5) { if (Input.GetKey(key_moveLeft)) { transform.Translate(Vector2.left * m_currentSpeed_x * Time.deltaTime); } } if (!m_overdrive) { if (Input.GetKeyDown(key_shoot)) { GameObject scoop = colorManager.GetScoop(); colorManager.Cancel(); if (scoop != null) { Shoot(scoop); } } if (Input.GetKeyDown(key_colorOne)) { colorManager.SelectColor("red"); } if (Input.GetKeyDown(key_colorTwo)) { colorManager.SelectColor("blue"); } if (Input.GetKeyDown(key_colorThree)) { colorManager.SelectColor("yellow"); } if (Input.GetKeyDown(key_cancelColor)) { colorManager.Cancel(); } } }