Ejemplo n.º 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         if (flagPrereq == "" || RPG.GetBool(flagPrereq))  // the prequisit is done
         {
             RPG.SetFlag(flagName, flagValue);
             Destroy(this);
         }
     }
 }