public static void levelTerrainPoints() { SpriteShapeTool sst = GameObject.FindObjectOfType <SpriteShapeTool>(); if (sst) { Selection.activeGameObject = sst.gameObject; } }
void OnEnable() { sst = (SpriteShapeTool)target; Selection.selectionChanged += delegate() { sst?.setSSC(Selection.activeGameObject); }; }