コード例 #1
0
        /// <summary>
        /// Call this method to force a configuration load.
        /// </summary>
        public void LoadConfiguration()
        {
            if (config == null)
            {
                return;
            }

            Grid2D grid = GetComponent <Grid2D>();

            if (grid == null)
            {
                Debug.Log("Grid2D not found in this game object!");
                return;
            }
            grid.textures = textures;
            grid.CellSetConfigurationData(config);
        }