예제 #1
0
        public static void ActivePickup(Action <PlayerItem, PlayerController> orig, PlayerItem self, PlayerController player)
        {
            bool isFake = FakePrefab.IsFakePrefab(self.gameObject);

            if (isFake)
            {
                self.gameObject.SetActive(true);
            }

            orig(self, player);

            if (isFake)
            {
                self.gameObject.SetActive(false);
            }
        }
예제 #2
0
        public static void AcquirePassiveItemPrefabDirectly(Action <PlayerController, PassiveItem> orig, PlayerController self, PassiveItem item)
        {
            bool isFake = FakePrefab.IsFakePrefab(item.gameObject);

            if (isFake)
            {
                item.gameObject.SetActive(true);
            }

            orig(self, item);

            if (isFake)
            {
                item.gameObject.SetActive(false);
            }
        }