public void CreateAxis(string name, string description) { if (this.axis.ContainsKey(name)) { Debug.LogWarning("Axis named " + name + " already exists."); return; } Axis axis = new ScrollAxis(name, description); this.axis.Add(name, axis); }
/// <summary> /// This edits the axis to be a scrollwheel axis /// </summary> /// <param name="name">name of the axis</param> public void EditAxis(string name) { Axis axis = null; if (this.axis.TryGetValue(name, out axis)) { Axis newAxis = new ScrollAxis(name, axis.Description); this.axis[name] = newAxis; } else { Debug.LogWarning("There's no axis named " + name + "."); } }