protected void Start()
        {
            _random = MIRandom.CreateStandard();

            OnQuantityOfItemsChanged();
            OnCreateConstantWeight();
        }
Exemple #2
0
        protected void Awake()
        {
            _random = MIRandom.CreateStandard();

#if UNITY_5_5_OR_NEWER
            _particles = new ParticleSystem.Particle[particleSystem.main.maxParticles];
#else
            _particles = new ParticleSystem.Particle[particleSystem.maxParticles];
#endif
            for (int i = 0; i < _particles.Length; ++i)
            {
                _particles[i].angularVelocity = 0f;
#if UNITY_5_5_OR_NEWER
                _particles[i].remainingLifetime = float.PositiveInfinity;
#else
                _particles[i].lifetime = float.PositiveInfinity;
#endif
#if UNITY_5_3_OR_NEWER
                _particles[i].startSize = 0.1f;
#else
                _particles[i].size = 0.1f;
#endif
                _particles[i].startLifetime = 0f;
                _particles[i].velocity      = Vector3.zero;
            }

            OnToggleChanged_UnitVectors3D(true);

            _flatRotationRate = new AnimationCurve(
                new Keyframe(0f, 0f, 0f, 0f),
                new Keyframe(0.3f, 0f, 0f, 0f),
                new Keyframe(0.7f, 1f, 0f, 0f),
                new Keyframe(1f, 1f, 0f, 0f));
        }
        protected void Start()
        {
            _random = MIRandom.CreateStandard();

            OnStringLengthChanged();
            OnQuantityOfStrings();
            OnIncludeSpacesChanged();
            OnSpaceFrequencyChanged();
        }
Exemple #4
0
        protected void Start()
        {
            _random = MIRandom.CreateStandard();

            OnQuantityOfDiceChanged();
            OnSidesPerDieChanged();
            OnQuantityToKeepChanged();
            OnQuantityToDropChanged();
            OnKeepDropToggleChanged();
        }
        protected void Start()
        {
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
            colorCategoriesToggleGroup.transform.parent.GetComponent <ScrollRect>().scrollSensitivity = 25;
#endif

            _random = MIRandom.CreateStandard();

            _colorButtons = colorGrid.GetComponentsInChildren <ColorToggleButton>();

            SelectColorButton(firstColorButton);
            OnColorSpaceToggle(rgbToggle);
        }
Exemple #6
0
        protected void Awake()
        {
            _random = MIRandom.CreateStandard();

            OnNormalToggleChanged(true);
        }