private void AddResetProperty() { if (current.materials[0].HasProperty("shader_is_using_thry_editor") == false) { EditorChanger.AddThryProperty(current.materials[0].shader); } current.materials[0].SetFloat("shader_is_using_thry_editor", 69); }
public void ChangeType(string changeTo) { switch (changeTo) { case "Default": selectedType = TileType.Default; action = EditorChanger.Change; RemoveTileGrid(); break; case "Goal": selectedType = TileType.Goal; action = EditorChanger.Change; RemoveTileGrid(); break; case "Hole": selectedType = TileType.Hole; action = EditorChanger.Change; RemoveTileGrid(); break; case "Block": selectedType = TileType.Block; action = EditorChanger.Change; Log(changeTo); RemoveTileGrid(); break; case "Remove": action = EditorChanger.Remove; RemoveTileGrid(); break; case "Add": action = EditorChanger.Add; AddSelected(); break; case "AddBlock": action = EditorChanger.BlockAdd; RemoveTileGrid(); break; default: break; } Log(changeTo + " Selected"); }