Пример #1
0
        private void Start()
        {
            genericRenderer = transform.GetAllRenderers(-1)[0];

            // Get colorBeforeEffect
            colorBeforeEffect = genericRenderer.Color;

            rgb = new Color[3] {
                Color.red, Color.green, Color.blue
            };
            rgb.Shuffle();

            if (Application.isPlaying)
            {
                if (isSimulating)
                {
                    FinishSimulation();
                }
            }
            if (startMode == StartStopMode.Seconds)
            {
                Invoke("StartEffect", timeToStart);
            }

            if (stopMode == StartStopMode.Seconds)
            {
                Invoke("StopEffect", timeToStop);
            }
        }