示例#1
0
    void CreateQuest()
    {
        if (town == null)
        {
            Debug.LogError("No town, this will break");
        }
        if (locationFactory == null)
        {
            Debug.LogError("No location factory, this will break");
        }

        Debug.Log("Creating quest");

        var pos = town.worldPosition;

        locationFactory.CreateALocationNearAPoint(questLocationData, (int)pos.x, (int)pos.y, 3, 6);
    }