Beispiel #1
0
    }//UpdateCurrClip


    public void ResetClip() {
        if(ClipSize < 0) //probably a meele weapon
            return;

        this.ClipStatus = ClipSize;

        EOnReloadEvent?.Invoke(false);
    }//ResetClip
Beispiel #2
0
 private static void OnReload()
 {
     if (EditorApplication.isPlaying == false)
     {
         return;
     }
     if (allChangeFile.Count == 0)
     {
         return;
     }
     foreach (var item in allChangeFile)
     {
         ReloadFunction.Invoke(item);
     }
     allChangeFile.Clear();
 }