Exemplo n.º 1
0
        /// <summary>
        /// Get animation components
        /// </summary>
        private void Awake()
        {
            if (ColorBlender == null)
            {
                ColorBlender = GetComponent <ColorTransition>();
            }

            if (MovePosition == null)
            {
                MovePosition = GetComponent <MoveToPosition>();
            }

            if (ScaleSize == null)
            {
                ScaleSize = GetComponent <ScaleToValue>();
            }

            // get renderer
            Renderer renderer = GetComponent <Renderer>();

            if (renderer != null)
            {
                mMaterial = renderer.material;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Get Scale to Value
 /// </summary>
 private void Awake()
 {
     if (ScaleTweener == null)
     {
         ScaleTweener = GetComponent <ScaleToValue>();
     }
 }