public void StopSound() { // Arrange CarMotor car = new CarMotor(); var audio = GetAudioMock(); car.SetCarAudioInterface(audio); //Act car.StopSound(); //Assert audio.Received().StopSound(); }
void OnDestory() { m_Car.StopSound(); GameObject.Find("Message").GetComponent <Text>().text = "GAME OVER"; }