コード例 #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
ファイル: GLDebug.cs プロジェクト: TerisseNicolas/Archip3l
        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();
        }