コード例 #1
0
 private void DidntAsk(On.RoR2.UI.PointViewer.orig_FindCamera orig, PointViewer self)
 {
     if (self != pointViewer)
     {
         orig(self);
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }