Ejemplo n.º 1
0
 public FixRecord(string cat, string msg, FixMethodDelegate fix, UnityEngine.Object target, string[] buttons)
     : base(cat, msg)
 {
     buttonNames  = buttons;
     fixMethod    = fix;
     targetObject = target;
     complete     = false;
 }
Ejemplo n.º 2
0
 public FixRecord(string cat, string msg, FixMethodDelegate fix, UnityEngine.Object target, string[] buttons)
 {
     category     = cat;
     message      = msg;
     buttonNames  = buttons;
     fixMethod    = fix;
     targetObject = target;
     complete     = false;
 }
Ejemplo n.º 3
0
 public FixRecord(int order, string cat, string msg, FixMethodDelegate fix, UnityEngine.Object target, bool editRequired, string[] buttons)
     : base(order, cat, msg)
 {
     buttonNames      = buttons;
     fixMethod        = fix;
     targetObject     = target;
     editModeRequired = editRequired;
     complete         = false;
 }
Ejemplo n.º 4
0
 static void AddFix(string category, string message, FixMethodDelegate method, UnityEngine.Object target, params string[] buttons)
 {
     mRecords.Add(new FixRecord(category, message, method, target, buttons));
 }
Ejemplo n.º 5
0
 static void AddFix(string category, string message, FixMethodDelegate method, UnityEngine.Object target, bool editModeRequired, params string[] buttons)
 {
     OVRPlugin.SendEvent("perf_lint_add_fix", category);
     mRecords.Add(new FixRecord(category, message, method, target, editModeRequired, buttons));
 }
Ejemplo n.º 6
0
    static void AddFix(eRecordType recordType, int sortOrder, string category, string message, FixMethodDelegate method, UnityEngine.Object target, bool editModeRequired, params string[] buttons)
    {
        OVRPlugin.SendEvent("perf_lint_add_fix", category);
        var fixRecord = new FixRecord(sortOrder, category, message, method, target, editModeRequired, buttons);

        switch (recordType)
        {
        case eRecordType.StaticCommon: mRecordsStaticCommon.Add(fixRecord); break;

        case eRecordType.StaticAndroid: mRecordsStaticAndroid.Add(fixRecord); break;

        case eRecordType.RuntimeCommon: mRecordsRuntimeCommon.Add(fixRecord); break;

        case eRecordType.RuntimeAndroid: mRecordsRuntimeAndroid.Add(fixRecord); break;
        }
    }
Ejemplo n.º 7
0
 static void AddFix(eRecordType recordType, string category, string message, FixMethodDelegate method, UnityEngine.Object target, bool editModeRequired, params string[] buttons)
 {
     AddFix(recordType, 0 /*sortOrder*/, category, message, method, target, editModeRequired, buttons);
 }