private void DidntAsk(On.RoR2.UI.PointViewer.orig_FindCamera orig, PointViewer self) { if (self != pointViewer) { orig(self); } }
private GameObject ReplaceLayer(On.RoR2.UI.PointViewer.orig_AddElement orig, PointViewer self, PointViewer.AddElementRequest request) { GameObject instance = orig(self, request); if (instance && self == pointViewer) { instance.SetLayerRecursive(LayerIndex.enemyBody.intVal); } return(instance); }
public List <Point> Generate() { noise.param = noiseParam; curlNoise.param = noiseParam; curlNoise.curlParam = curlParam; var points = clusters[cluster].Generate(num, bounds); if (viewer == null) { viewer = GetComponent <PointViewer>(); } if (curlFlow != null) { curlFlow.Init(points); viewer?.SetBuffer(curlFlow.pointBuffer); } else { viewer?.SetPoint(points); } return(points); }