예제 #1
0
    private GameObject CreateTile(Tile tile, Vector3 scale, Vector3 position, GameObject matchfieldGameObject)
    {
        GameObject tileGameObject = gameObjectLoader.GetTile(tile, game.Chapter);

        tileGameObject.name = "Tile";
        tileGameObject.GetComponent <Transform>().parent        = matchfieldGameObject.GetComponent <Transform>();
        tileGameObject.GetComponent <Transform>().localScale    = scale;
        tileGameObject.GetComponent <TileBlinker>().size        = scale;
        tileGameObject.GetComponent <Transform>().localPosition = position;

        return(tileGameObject);
    }