Exemple #1
0
 private void OnDestroy()
 {
     Destroy(GridRenderCtrl_);
     GridRenderCtrl_ = null;
     DeployBoundaryDisplayer.EnableVectorCanvas(false);
     DeployUnitMenu.DestroyCurrent();
 }
Exemple #2
0
 public static void DestroyCurrent()
 {
     if (Instance_)
     {
         Destroy(Instance_.gameObject);
         Instance_ = null;
     }
 }