当使用两个IF语句进行判断的时候,就会出现问题
程序只运行第一个IF语句,满足第一个条件,就会忽略第二个IF语句
这样写是正确的,按下按钮,背包系统下面的子栏目显示,如果不是则隐藏
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SectionButtonShow : MonoBehaviour
{
public bool isshow;//判断当前按钮的状态
void Awake()
{
DisShowSectionButton();//设置初始状态
}//
private void ShowSectionButton()//当显