Esempio n. 1
0
    // ************************************************************************************
    // MAIN
    // ************************************************************************************

    // Use this for initialization
    void Awake()
    {
        Registry.map = this;

        SetupContainerLists();

        levelReader = gameObject.GetComponent <XMLLevelReader>();
        if (levelReader == null)
        {
            Debug.LogError("levelReader is not found!");
        }

        levelWriter = gameObject.GetComponent <XMLLevelWriter>();
        if (levelWriter == null)
        {
            Debug.LogError("levelWriter is not found!");
        }
    }
Esempio n. 2
0
    void Start()
    {
        map = Registry.map;
        if (map == null)
        {
            Debug.LogError("map is not found!");
        }

        levelReader = map.GetComponent <XMLLevelReader>();
        if (levelReader == null)
        {
            Debug.LogError("levelReader is not found!");
        }

        levelWriter = map.GetComponent <XMLLevelWriter>();
        if (levelWriter == null)
        {
            Debug.LogError("levelWriter is not found!");
        }

        InitializeOriginMarker();
    }