unity GameObject triggers code example
Example 1: destroy gameobject unity
Destroy(this.gameObject);
Example 2: deactivate a gameobject unity
public void SetActive(bool value);
Destroy(this.gameObject);
public void SetActive(bool value);