コード例 #1
0
ファイル: Fragment.cs プロジェクト: NotSoOld/SHUDRS
        ///  Use this for re-initialization.
        public void Reinitialize()
        {
            /// Set unique index.
            index = transform.GetSiblingIndex();

            /// Update references to Element and first Fragmentation settings.
            element  = GetComponentInParent <Element>();
            settings = GetComponentInParent <FragmentationSettings>();
        }
コード例 #2
0
ファイル: Fragment.cs プロジェクト: NotSoOld/SHUDRS
        ///  Use this for initialization.
        public void Initialize()
        {
            /// Set up collider (is added automatically by [RequireComponent]).
            GetComponent <MeshCollider>().convex = true;

            /// Set unique index.
            index = transform.GetSiblingIndex();

            /// Find references to Element and first Fragmentation settings.
            element  = GetComponentInParent <Element>();
            settings = GetComponentInParent <FragmentationSettings>();
        }
コード例 #3
0
 public FragmentTextFileCommandHandler(IBlobStorage blobStorage, IOptions <FragmentationSettings> options)
 {
     _blobStorage = blobStorage;
     _settings    = options.Value;
 }