示例#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
     }
 }
示例#2
0
 public static DuplicateCheck CheckForDuplicateID([FromBody] DuplicateCheck m)
 {