示例#1
0
 public void OnDestroy()
 {
     if (s_instance == this)
     {
         s_instance = null;
     }
 }
示例#2
0
        public void Awake()
        {
            if (s_instance != null)
            {
                Debug.LogWarning("Mvx2: Only single instance of logger sink allowed");
                Destroy(this);
            }

            s_instance = this;
        }
示例#3
0
 public UnityLoggerSink(MvxLoggerSink mvxLoggerSink)
 {
     m_mvxLoggerSink = mvxLoggerSink;
 }