public void OnPushTile(TableGlyph tile)
 {
     if (onTilePush != null)
     {
         onTilePush(tile);
     }
 }
Exemple #2
0
 void SetTextures()
 {
     if (buttons != null)
     {
         for (int i = 0; i < buttons.Count; i++)
         {
             TableGlyph button = buttons[i];
             button.textureIndex = buttonToTextureMapping[i];
             button.UpdateTexture();
         }
     }
 }
 void OnTriggerEnter(Collider objectHit)
 {
     if (HitManager.Instance != null)
     {
         if (objectHit.gameObject.layer == damagePlayerLayer)
         {
             HitManager.Instance.OnObstacleHit();
         }
         else if (objectHit.gameObject.layer == glyphTableTileLayer)
         {
             TableGlyph tile = objectHit.gameObject.GetComponentInParent <TableGlyph>();
             HitManager.Instance.OnPushTile(tile);
         }
     }
     Debug.Log(objectHit);
 }
Exemple #4
0
 public void OnTilePush(TableGlyph tile)
 {
     GetGlyphTable();
     glyphTable.PushButton(tile.number);
 }