public void SetBoolData(IAQAccessible source, string code, bool value) { if (source == null) { Debug.Log("Source function parameter is null. Aborting."); return; } if (!AQSourceLib.ContainsKey(source)) { Debug.Log("Source " + source + " isn't manually inserted into db. Aborting."); return; } AQSourceLib[source].SetBool(code, value); }
public object iGetData(IAQAccessible source, string code) { if (source == null) { Debug.Log("Source function parameter is null. Returning null."); return(null); } if (!AQSourceLib.ContainsKey(source)) { return(null); } object data = AQSourceLib[source].Get(code); if (data == null) { Debug.Log("AQ:Data doesn't exist " + source.Obj + " " + code, source.Obj); } return(data); }
public static object GetData(IAQAccessible source, string code) { return(Ins.iGetData(source, code)); }
public static void Register(IAQAccessible source) { Ins.iRegister(source); }
public void iRegister(IAQAccessible source) { AQSourceLib.Add(source, new AQAccessData()); }
private void OnDestroy() { ActiveSource = null; instance = null; }
public static void AssignActiveSource(IAQAccessible source) { AQAccess.ActiveSource = source; }