예제 #1
0
 public ChipMeta(int prefabId, ChipOrientation orientation, bool isOrientationImportant, int stackPos, float height, int crushWeight)
 {
     this.prefabId               = prefabId;
     this.orientation            = orientation;
     this.isOrientationImportant = isOrientationImportant;
     this.stackPos               = stackPos;
     this.Height      = height;
     this.CrushWeight = crushWeight;
 }
예제 #2
0
 public void Flip()          //Doesn't actually flip the chip, only "flips" the meta chip
 {
     if (orientation == ChipOrientation.UP)
     {
         orientation = ChipOrientation.DOWN;
     }
     else
     {
         orientation = ChipOrientation.UP;
     }
 }
예제 #3
0
    public int Weight      = 1; //Shouldn't be changeable now

    public ChipMeta(int prefabId, ChipOrientation orientation, bool isOrientationImportant, int stackPos, float height) :
        this(prefabId, orientation, isOrientationImportant, stackPos, height, 0)
    {
    }