Exemplo n.º 1
0
        /// <summary>
        /// Update this instance.
        /// </summary>
        void Update()
        {
            if (!Glasses.Validate(glassesSettings))
            {
                Glasses.Reset(glassesSettings);
            }

            Glasses.Update(glassesSettings);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Called when the GameObject is enabled.
 /// </summary>
 void OnEnable()
 {
     Glasses.Reset(glassesSettings);
 }