Esempio n. 1
0
    private void OnCallback(GAFBaseClip obj)
    {
        var audioSource = GetComponent <AudioSource>();

        if (audioSource != null)
        {
            audioSource.Play();
        }
    }
        //public override List<GAFTransform> timelines
        //{
        //	get
        //	{
        //		return m_Timelines;
        //	}
        //}



        #endregion         // Properties

        #region Interface

        /// <summary>
        /// Initialize object manager parameters.
        /// <para />Animation subobjects are created here.
        /// </summary>
        public override void initialize()
        {
            //cachedRenderer.hideFlags  = HideFlags.NotEditable;
            //cachedFilter.hideFlags        = HideFlags.NotEditable;

            m_MovieClip = GetComponent <GAFBaseClip>();

            m_SortingManager = GetComponent <GAFSortingManager>();
            m_SortingManager.initialize();

            createObjects();
        }