Esempio n. 1
0
 private void Awake()
 {
     manager      = VisualizerManager.Singleton;
     processor    = transform.parent.GetComponent <Processor>();
     sphereMat    = GetComponent <MeshRenderer>().material;
     lineRenderer = GetComponent <LineRenderer>();
     lineMat      = lineRenderer.material;
 }
Esempio n. 2
0
        private void Awake()
        {
            if (Singleton != null)
            {
                Debug.LogError($"A Visualizer Manager already exists, please make sure only 1 is in the scene.\n{Singleton.transform}");

                Destroy(this);

                return;
            }

            Singleton = this;

            // Checks to see if seed is set to -1, and if so, to generate a "random" seed.
            if (seed == -1)
            {
                var now = DateTime.Now;

                seed = (now.Day | now.Month | now.Year) & (now.Hour | now.Minute | now.Second);
            }

            // Just because I think it looks cool, it will spawn in the orbiters every so often.
            StartCoroutine(GenerateSphere());
        }
Esempio n. 3
0
        private void Awake()
        {
            var myTransform = transform;

            center = myTransform.parent.GetComponent <VisualizerManager>();
        }