
本文共 1620 字,大约阅读时间需要 5 分钟。
���������������IF���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
���������������������������������������IF������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
���������������������������������������������������������������������
using System.Collections;using System.Collections.Generic;using UnityEngine;public class SectionButtonShow : MonoBehaviour{ private bool isShow; private void Awake() { InitializeButtonState(); } private void InitializeButtonState() { HideSectionButton(); } private void ShowSectionButton() { transform.localScale = Vector3.one; isShow = true; } private void HideSectionButton() { transform.localScale = Vector3.zero; isShow = false; } public void SectionButton() { if (isShow) { HideSectionButton(); } else { ShowSectionButton(); } }}
������������������������state transition������������������������������������������������������������������������������������������������������������������������������������������������������������
���������������������������������������������������������������������������������������������������������������������������������������������������������������������//���������������������������������������
发表评论
最新留言
关于作者
