Ejemplo n.º 1
0
    /// <summary>
    /// Test dokumentacji
    /// </summary>
    void Start()
    {
        DontDestroyOnLoad(gameObject);
        domaContainer = DomaContainer.Instance;

        Application.targetFrameRate = domaContainer.TargetFrameRate;

        // Turn off v-sync
        //QualitySettings.vSyncCount = 2;

        LoadData("domaApp");

        Enable2DView();

        ShowSavedFiles();

        gameObjectCircleTip = new GameObject("CircleTip");
        newImage            = gameObjectCircleTip.AddComponent <SpriteRenderer>();
        newImage.sprite     = ImageToolTipPoint;
        gameObjectCircleTip.SetActive(false);
        currentStatusDoma.activeFloor = currentStatusDoma.appSystem.Floors.FirstOrDefault();

        DefaultTexturesForObjects = new Dictionary <string, string>();
        DefaultTexturesForObjects.Add("Wall", "Wall");
        DefaultTexturesForObjects.Add("Ceiling", "TransparencyCeiling");
        DefaultTexturesForObjects.Add("Roof", "Roof");
    }
Ejemplo n.º 2
0
    // ************************************************************************************************************

    private void Awake()
    {
        if (_instance != null && _instance != this)
        {
            Destroy(this.gameObject);
        }
        else
        {
            _instance = this;
        }
    }