Exemplo n.º 1
0
 private void OnDeath(OnDeathEventArgs args)
 {
     if (onDeath != null)
     {
         onDeath(this, args);
     }
 }
Exemplo n.º 2
0
    public virtual void OnDestruction(OnDeathEventArgs e)
    {
        EventHandler <OnDeathEventArgs> handler = meteorDestroyed;

        if (handler != null)
        {
            handler(this, e);
        }
    }
Exemplo n.º 3
0
 public void show(object sender, OnDeathEventArgs e)
 {
     meteorsDestroyed++;
     meteorCountText.GetComponent <UnityEngine.UI.Text>().text = "Meteors Destroyed: " + meteorsDestroyed;
 }