Exemple #1
0
        //End events
        #endregion
        public static void OutputAction(string msg, OutTypes type, params object[] args)
        {
            switch (type)
            {
            case OutTypes.Info:
                OutputInfo?.Invoke(msg);
                break;

            case OutTypes.Error:
                OutputError?.Invoke(msg);
                break;

            case OutTypes.Warning:
                OutputWarning?.Invoke(msg);
                break;

            case OutTypes.Success:
                OutputSuccess?.Invoke(msg);
                break;

            case OutTypes.Debug:
                OutputDebug?.Invoke(msg);
                break;

            default:
                Output?.Invoke(msg, args);
                break;
            }
        }
Exemple #2
0
 void Awake()
 {
     me = this;
 }