예제 #1
0
        public void HandleTextureChange(string buttonText)
        {
            string materialName = buttonText.ToLower().Replace(" ", "_");
            var    materials    = materialManager.GetMaterials();
            var    material     = materials[materialName];
            var    gameObject   = virtualObjectsManager.GetCurrentlySelected();

            if (gameObject is null)
            {
                materialManager.ChangeSelectedMaterial(material);
                return;
            }
            materialManager.SetGameObjectMaterial(gameObject, material);
        }