private void OnDeath(OnDeathEventArgs args) { if (onDeath != null) { onDeath(this, args); } }
public virtual void OnDestruction(OnDeathEventArgs e) { EventHandler <OnDeathEventArgs> handler = meteorDestroyed; if (handler != null) { handler(this, e); } }
public void show(object sender, OnDeathEventArgs e) { meteorsDestroyed++; meteorCountText.GetComponent <UnityEngine.UI.Text>().text = "Meteors Destroyed: " + meteorsDestroyed; }