コード例 #1
0
 public void SetTextureAndPositionFromInfo(CollageFractionInfo cInfo)
 {
     this.collageId          = cInfo.collageId;
     this.positionId         = cInfo.positionId;
     this.transform.position = cInfo.currentPosition;
     this.currentTexture2d   = cInfo.currentTexture2d;
     this.canEnterNextLevel  = cInfo.canEnterNextLevel;
     SetImageFromTexture2D(currentTexture2d);
 }
コード例 #2
0
    //Get the summary information
    public CollageFractionInfo GetFractionInfo()
    {
        CollageFractionInfo cInfo = new CollageFractionInfo();

        cInfo.collageId         = collageId;
        cInfo.positionId        = positionId;
        cInfo.currentPosition   = this.transform.position;
        cInfo.currentTexture2d  = currentTexture2d;
        cInfo.canEnterNextLevel = canEnterNextLevel;
        return(cInfo);
    }