コード例 #1
0
    void CollectPlant()
    {
        GrassBehaviour tile = GameMasterScript.GetGrassTile(this.transform.position);

        if (tile.GetHasPlant())
        {
            GameMasterScript.RemovePlant(tile.GetPlantFromTile());
            tile.CleanTile();
        }
    }