// Use this for initialization void Awake() { DontDestroyOnLoad(gameObject); if (!m_Instance) { m_Instance = this; } else if (m_Instance != this) { Destroy(gameObject); } }
private void btnShoot_Click(object sender, EventArgs e) { //ShootAwayCountdown(); gamePlay.ShootAwayCountdown(); int count = 6; ShootAwayCountDown = 1; pbxbowandarrow.Image = Resource1.bow_and_arrow; soundPlayer player = new soundPlayer(Properties.Resources.Gunshot.wav); player.PlaySync(); }