void DrawSpawnPointScene() { for (int i = 0; i < eTarget.SpawnPoints.Count; i++) { SM_SpawnPoint _point = eTarget.SpawnPoints[i]; EditoolsHandle.SetColor(Color.green); EditoolsHandle.DrawWireCube(_point.Position, _point.Size); EditoolsHandle.SetColor(Color.white); EditoolsHandle.PositionHandle(ref _point.Position, Quaternion.identity); EditoolsHandle.ScaleHandle(ref _point.Size, _point.Position, Quaternion.identity, 2); EditoolsLayout.Space(); GetModeScene(_point); } }
public override void DrawSceneMode() { EditoolsHandle.PositionHandle(ref Position, Quaternion.identity); Handles.CubeHandleCap(1, Position, Quaternion.identity, .1f, EventType.Repaint); }