Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     if (instance != null)           //If there is an instance already
     {
         Destroy(gameObject);        //Destroy the pendning gameobject
     }
     else
     {
         instance = this;                          //"Claim" the instance
         GameObject.DontDestroyOnLoad(gameObject); //Don't destroy pending instance
     }
 }
Exemplo n.º 2
0
 public static DuplicateCheck CheckForDuplicateID([FromBody] DuplicateCheck m)
 {