/// <summary>
		/// 	Call this method after instantiation to initialize child resources.
		/// </summary>
		public override void Enable()
		{
			if (m_RandomNumberGenerator == null)
				m_RandomNumberGenerator = new HydraRNG();

			base.Enable();
		}
        /// <summary>
        ///     Call this method after instantiation to initialize child resources.
        /// </summary>
        public override void Enable()
        {
            if (m_RandomNumberGenerator == null)
            {
                m_RandomNumberGenerator = new HydraRNG();
            }

            base.Enable();
        }
Esempio n. 3
0
        /// <summary>
        ///     Call this method after instantiation to initialize child resources.
        /// </summary>
        public override void Enable()
        {
            InitializeAttributes();

            if (m_RandomVector3Generator == null)
            {
                m_RandomVector3Generator = new HydraRNG();
            }

            base.Enable();
        }
		/// <summary>
		/// 	Call this method after instantiation to initialize child resources.
		/// </summary>
		public override void Enable()
		{
			if (m_RandomNumberGenerator == null)
				m_RandomNumberGenerator = new HydraRNG();

			if (m_CurveA == null)
			{
				m_CurveA = new AnimationCurve();
				m_CurveA.SetWrapMode(DEFAULT_WRAP_MODE, DEFAULT_WRAP_MODE);
			}

			if (m_CurveB == null)
			{
				m_CurveB = new AnimationCurve();
				m_CurveB.SetWrapMode(DEFAULT_WRAP_MODE, DEFAULT_WRAP_MODE);
			}

			base.Enable();
		}
        /// <summary>
        ///     Call this method after instantiation to initialize child resources.
        /// </summary>
        public override void Enable()
        {
            if (m_RandomColorGenerator == null)
            {
                m_RandomColorGenerator = new HydraRNG();
            }

            if (m_GradientA == null)
            {
                m_GradientA = new Gradient();
            }

            if (m_GradientB == null)
            {
                m_GradientB = new Gradient();
            }

            base.Enable();
        }
Esempio n. 6
0
        /// <summary>
        ///     Call this method after instantiation to initialize child resources.
        /// </summary>
        public override void Enable()
        {
            if (m_RandomNumberGenerator == null)
            {
                m_RandomNumberGenerator = new HydraRNG();
            }

            if (m_CurveA == null)
            {
                m_CurveA = new AnimationCurve();
                m_CurveA.SetWrapMode(DEFAULT_WRAP_MODE, DEFAULT_WRAP_MODE);
            }

            if (m_CurveB == null)
            {
                m_CurveB = new AnimationCurve();
                m_CurveB.SetWrapMode(DEFAULT_WRAP_MODE, DEFAULT_WRAP_MODE);
            }

            base.Enable();
        }
		/// <summary>
		/// 	Call this method after instantiation to initialize child resources.
		/// </summary>
		public override void Enable()
		{
			if (m_RandomColorGenerator == null)
				m_RandomColorGenerator = new HydraRNG();

			if (m_GradientA == null)
				m_GradientA = new Gradient();

			if (m_GradientB == null)
				m_GradientB = new Gradient();

			base.Enable();
		}
		/// <summary>
		/// 	Call this method after instantiation to initialize child resources.
		/// </summary>
		public override void Enable()
		{
			InitializeAttributes();

			if (m_RandomVector3Generator == null)
				m_RandomVector3Generator = new HydraRNG();

			base.Enable();
		}