Пример #1
0
 public GAFObjectData(string _Name, ObjectType _Type, GAFBaseMovieClip _Clip, GAFObjectsManager _Manager, uint _ID, uint _AtlasElementID)
 {
     m_Name           = _Name;
     m_Type           = _Type;
     m_Clip           = _Clip;
     m_Manager        = _Manager;
     m_ID             = (int)_ID;
     m_AtlasElementID = (int)_AtlasElementID;
 }
Пример #2
0
        public void init(GAFBaseMovieClip _Clip, MeshFilter _Filter, Renderer _Renderer)
        {
            m_Filter   = _Filter;
            m_Renderer = _Renderer;
            m_Clip     = _Clip;

            m_Filter.hideFlags   = HideFlags.NotEditable;
            m_Renderer.hideFlags = HideFlags.NotEditable;

            renderer.castShadows      = false;
            renderer.receiveShadows   = false;
            renderer.sortingLayerName = m_Clip.settings.spriteLayerName;
            renderer.sortingOrder     = m_Clip.settings.spriteLayerValue;
        }
Пример #3
0
        protected virtual void clearObjectManagerLists(GAFBaseMovieClip clip)
        {
            var objectManagers = (GAFObjectsManagerEditor[])Resources.FindObjectsOfTypeAll <GAFObjectsManagerEditor>();

            if (objectManagers != null && objectManagers.Length > 0)
            {
                for (int i = 0; i < objectManagers.Length; i++)
                {
                    if (clip.manager == objectManagers[i].target)
                    {
                        objectManagers[i].clearLists();
                        break;
                    }
                }
            }
        }
Пример #4
0
 public GAFObjectData(GAFObjectData _Other)
 {
     m_Name                 = _Other.name;
     m_Type                 = _Other.type;
     m_Clip                 = _Other.clip;
     m_Manager              = _Other.manager;
     m_ID                   = (int)_Other.objectID;
     m_AtlasElementID       = (int)_Other.atlasElementID;
     m_IsVisible            = _Other.visible;
     m_Material             = _Other.material;
     m_StatePosition        = _Other.statePosition;
     m_Offset               = _Other.offset;
     m_UseCustomTextureRect = _Other.useCustomTextureRect;
     m_AtlasTextureRect     = _Other.atlasTextureRect;
     m_MeshSizeMultiplier   = _Other.meshSizeMultiplier;
 }
Пример #5
0
 public void initialize(string _Name, ObjectType _Type, GAFBaseMovieClip _Clip, GAFObjectsManager _Manager, uint _ObjectID, uint _AtlasElementID)
 {
     m_Data = new GAFObjectData(_Name, _Type, _Clip, _Manager, _ObjectID, _AtlasElementID);
 }