private void Awake()
        {
            if (_instance)
            {
                Destroy(this);
                return;
            }

            _instance                  = this;
            figuresDepthTest           = new Dictionary <int, Figure>();
            figuresNoDepthTest         = new Dictionary <int, Figure>();
            figuresScreenSpace         = new Dictionary <int, Figure>();
            figuresMultiplyDepthTest   = new Dictionary <int, Figure>();
            figuresMultiplyNoDepthTest = new Dictionary <int, Figure>();
            figuresMultiplyScreenSpace = new Dictionary <int, Figure>();
            figuresTmp                 = new Dictionary <int, Figure>();

            setMaterials();
        }
Beispiel #2
0
        private void Awake()
        {
            if (_instance)
            {
                Destroy(this);
                return;
            }

            _instance = this;
            figuresDepthTest = new Dictionary<int, Figure>();
            figuresNoDepthTest = new Dictionary<int, Figure>();
            figuresScreenSpace = new Dictionary<int, Figure>();
            figuresMultiplyDepthTest = new Dictionary<int, Figure>();
            figuresMultiplyNoDepthTest = new Dictionary<int, Figure>();
            figuresMultiplyScreenSpace = new Dictionary<int, Figure>();
            figuresTmp = new Dictionary<int, Figure>();

            setMaterials();
        }