private void GrantLunarCoin(CharacterBody body, uint count) { if (!NetworkServer.active) { Debug.LogWarning("[Server] function 'System.Void RoR2.GenericPickupController::GrantLunarCoin(RoR2.CharacterBody,System.UInt32)' called on client"); return; } CharacterMaster master = body.master; NetworkUser networkUser = Util.LookUpBodyNetworkUser(body); if (networkUser) { if (master) { GenericPickupController.SendPickupMessage(master, this.pickupIndex); } networkUser.AwardLunarCoins(count); UnityEngine.Object.Destroy(base.gameObject); } }
//uh, duh. private static void GiveLunarCoins() { LocalNetworkUser.AwardLunarCoins(coinsToGive); }