コード例 #1
0
ファイル: ArtObjectMaterializer.cs プロジェクト: Zeludon/FEZ
 public ArtObjectMaterializer(TrixelCluster missingTrixels, List<TrixelSurface> surfaces, Vector3 size)
 {
   this.missingTrixels = missingTrixels;
   ServiceHelper.InjectServices((object) this);
   this.added = new HashSet<TrixelFace>();
   this.removed = new HashSet<TrixelFace>();
   this.surfaces = surfaces ?? new List<TrixelSurface>();
   this.size = size;
 }
コード例 #2
0
ファイル: Trile.cs プロジェクト: 0x0ade/FmbLib
 public Trile() {
     MissingTrixels = new TrixelCluster();
     ActorSettings = new TrileActorSettings();
     Name = "Untitled";
     #if !UNITY
     Size = Vector3.One;
     #else
     Size = Vector3.one;
     #endif
     Faces = new Dictionary<FaceOrientation, CollisionType>(4);
 }
コード例 #3
0
ファイル: Trile.cs プロジェクト: 0x0ade/FmbLib
 public Trile()
 {
     MissingTrixels = new TrixelCluster();
     ActorSettings  = new TrileActorSettings();
     Name           = "Untitled";
     #if !UNITY
     Size = Vector3.One;
     #else
     Size = Vector3.one;
     #endif
     Faces = new Dictionary <FaceOrientation, CollisionType>(4);
 }
コード例 #4
0
ファイル: ArtObjectMaterializer.cs プロジェクト: Zeludon/FEZ
 public ArtObjectMaterializer(ArtObject artObject)
 {
   this.artObject = artObject;
   ServiceHelper.InjectServices((object) this);
   artObject.Materializer = this;
   this.size = artObject.Size;
   if (artObject.MissingTrixels == null)
     return;
   this.added = new HashSet<TrixelFace>();
   this.removed = new HashSet<TrixelFace>();
   this.missingTrixels = artObject.MissingTrixels;
   if (artObject.TrixelSurfaces == null)
     artObject.TrixelSurfaces = this.surfaces = new List<TrixelSurface>();
   else
     this.surfaces = artObject.TrixelSurfaces;
 }