コード例 #1
0
ファイル: RedirectorView.cs プロジェクト: doooont/test
        private void OnDirectionChanged(Redirector.Direction direction)
        {
            _activeMat?.SetColor(kEmissionColorProp, _inactiveColor);

            var renderer = _lights.Find(direction.ToString()).GetComponent <Renderer>();

            _activeMat = renderer.material;

            _inactiveColor = _activeMat.GetColor(kEmissionColorProp);
            _activeMat.SetColor(kEmissionColorProp, activeLightColor);
        }
コード例 #2
0
ファイル: RedirectorTouchInput.cs プロジェクト: doooont/test
        private Redirector.Direction GetNextDirection(Redirector.Direction dir)
        {
            var i = (int)dir;

            return((Redirector.Direction)(i == 3 ? 0 : i + 1));
        }