Exemple #1
0
        ///  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>();
        }
Exemple #2
0
        ///  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>();
        }
 public FragmentTextFileCommandHandler(IBlobStorage blobStorage, IOptions <FragmentationSettings> options)
 {
     _blobStorage = blobStorage;
     _settings    = options.Value;
 }