示例#1
0
 private void OnMouseDown()
 {
     if (isSelected)
     {
         teleporterManager.RemoveTeleporterFromSelection(this);
         SetDeselect();
     }
     else
     {
         teleporterManager.AddTeleporterToSelection(this);
         SetSelect();
     }
 }