Beispiel #1
0
 /// <summary>
 /// This is the called when the script/object is disabled.
 /// </summary>
 public void OnDisable()
 {
     //remove this object from the grid.
     if (SearchCell != null &&
         SearchGrid.Instance != null)
     {
         SearchGrid.RemoveObject(this);
     }
 }