Esempio n. 1
0
 /**
  * Adds a Tilemap to an existing GameObject. The behavior is initialized with the
  *   loader's parameters and the block mask.
  */
 private void AddTilemap(GameObject holder, Texture2D blockMask)
 {
     Layout.AddComponent <Behaviours.Map>(holder, new Dictionary <string, object>()
     {
         { "width", Width },
         { "height", Height },
         { "blockMask", blockMask },
         { "maskApplicationOffsetX", 0 },
         { "maskApplicationOffsetY", 0 },
     });
 }