internal CsprojSettings(IDictionary <string, string?> projectWideSettings, IDictionary <string, string?> debugSettings, IDictionary <string, string?> releaseSettings) { ProjectWideGroup = CreatePropertyGroup(projectWideSettings); DebugGroup = CreatePropertyGroup(debugSettings); DebugGroup?.Add(new XAttribute(Constants.Condition, string.Format(Mode, Constants.Debug))); ReleaseGroup = CreatePropertyGroup(releaseSettings); ReleaseGroup?.Add(new XAttribute(Constants.Condition, string.Format(Mode, Constants.Release))); }
// Use this for initialization void Start() { bar = GetComponent <Scrollbar> (); Hp = 0; var root = DebugManager.Instance.Root; var group = new DebugGroup("Cheat HP"); root.Add(group); group.Add(new DebugAction("+100 HP", () => Hp += 100)); group.Add(new DebugAction("+200 HP", () => Hp += 200)); group.Add(new DebugAction("+300 HP", () => Hp += 300)); group.Add(new DebugAction("+1000 HP", () => Hp += 1000)); group.Add(new DebugAction("-100 HP", () => Hp -= 100)); group.Add(new DebugAction("-400 HP", () => Hp -= 400)); }