示例#1
0
 // Collide with player, give activate and destroy mod
 void OnTriggerStay2D(Collider2D other)
 {
     if (other.tag == "Player")
     {
         GameObject dm = GameObject.FindGameObjectWithTag("GameController");
         ModManager mm = dm.GetComponent <ModManager>();
         mm.ActivateRandom();
         Destroy(gameObject);
     }
 }