Esempio n. 1
0
        public static void CB_COMP_vMeleeManager(GameObject target, ref List <string> log)
        {
            SHOOTER_HasvShooterManagerComp(target);
            //if (CB_shooterEnabled) return;

            if (!target.GetComponent <vMeleeManager>())
            {
                return;
            }
            if (log != null)
            {
                log.Add("Replacing vMeleeManager -> MP_vMeleeManager");
            }
            if (log != null)
            {
                log.Add("Adding MP_vMeleeManager -> PhotonView");
            }
            E_CompHelper.ReplaceWithComponent(target, typeof(vMeleeManager), typeof(MP_vMeleeManager), false);
        }
Esempio n. 2
0
        public static void CB_COMP_vMeleeCombatInput(GameObject target, ref List <string> log)
        {
            if (!target.GetComponent <vMeleeCombatInput>())
            {
                return;
            }
            SHOOTER_HasvShooterManagerComp(target);
            if (CB_shooterEnabled)
            {
                return;
            }

            if (log != null)
            {
                log.Add("Replacing vMeleeCombatInput -> MP_vMeleeCombatInput");
            }
            if (log != null)
            {
                log.Add("Adding MP_vMeleeCombatInput -> PhotonView");
            }
            E_CompHelper.ReplaceWithComponent(target, typeof(vMeleeCombatInput), typeof(MP_vMeleeCombatInput), true);
        }