Exemplo n.º 1
0
    //////////////////////////////////////////////////////////////////////////
    // Weapon
    public static GameObject GetCurMainWeapon(GameObject target, MasterWeaponType masterType = MasterWeaponType.Master)
    {
        WeaponControl control = target.GetComponent <WeaponControl>();

        if (control == null)
        {
            LogicSystem.GfxLog("ShooterSkillExecutor WeaponControl Script miss!");
            return(null);
        }
        return(control.GetCurMainWeapon(masterType));
    }