Beispiel #1
0
 private static void CCNoclip(ConCommandArgs args)
 {
     if (args.sender == null)
     {
         Log.MessageWarning(Lang.DS_NOTAVAILABLE);
         return;
     }
     if (Run.instance)
     {
         NoclipNet.Invoke(args.sender); // callback
     }
     else
     {
         Log.MessageNetworked(Lang.NOTINARUN_ERROR, args, LogLevel.MessageClientOnly);
     }
 }
Beispiel #2
0
 private void Awake()
 {
     _instance = this;
 }