예제 #1
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();
        }
예제 #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();
        }