コード例 #1
0
ファイル: SwfClip.cs プロジェクト: Hydrocas/ShaanMa
 void ClearCache(bool allow_to_create_components)
 {
     _meshFilter   = SwfUtils.GetComponent <MeshFilter>  (gameObject, allow_to_create_components);
     _meshRenderer = SwfUtils.GetComponent <MeshRenderer>(gameObject, allow_to_create_components);
     _sortingGroup = SwfUtils.GetComponent <SortingGroup>(gameObject, allow_to_create_components);
     _dirtyMesh    = true;
     _curSequence  = null;
     _curPropBlock = null;
 }
コード例 #2
0
 void ClearCache()
 {
     _meshFilter   = SwfUtils.GetOrCreateComponent <MeshFilter>(gameObject);
     _meshRenderer = SwfUtils.GetOrCreateComponent <MeshRenderer>(gameObject);
         #if UNITY_5_6_OR_NEWER
     _sortingGroup = SwfUtils.GetOrCreateComponent <SortingGroup>(gameObject);
         #endif
     _dirtyMesh    = true;
     _curSequence  = null;
     _curPropBlock = null;
 }