コード例 #1
0
 private void Awake()
 {
     subsystemManager = GetComponentInParent <SubsystemManager>();
     reactionManager  = GetComponentInParent <ReactionManager>();
     matrix           = GetComponent <Matrix>();
     MetaDataSystem   = subsystemManager.GetComponent <MetaDataSystem>();
 }
コード例 #2
0
 /// <summary>
 /// Create a new MetaDataNode on the specified local position (within the parent matrix)
 /// </summary>
 /// <param name="position">local position (within the matrix) the node exists on</param>
 public MetaDataNode(Vector3Int position, ReactionManager reactionManager, Matrix matrix, MetaDataSystem InMetaDataSystem)
 {
     MetaDataSystem = InMetaDataSystem;
     PositionMatrix = matrix;
     Position       = position;
     neighborList   = new List <MetaDataNode>(4);
     for (var i = 0; i < neighborList.Capacity; i++)
     {
         neighborList.Add(null);
     }
     GasMix = GasMix.NewGasMix(GasMixes.BaseSpaceMix);
     this.reactionManager = reactionManager;
 }