예제 #1
0
        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);
            }
        }
예제 #2
0
파일: Main.cs 프로젝트: cleoman/RoR2ModMenu
 //uh, duh.
 private static void GiveLunarCoins()
 {
     LocalNetworkUser.AwardLunarCoins(coinsToGive);
 }