摘要:
this.gameObject.layer = LayerMask.NameToLayer("KongLong"); 为何这些脚本前边的方框都不见了,是因为这些脚本中没有Start()或者Update() FixedUpdate() OnGUI() 等等方法,测试添加Awake()是无效的 阅读全文
摘要:
using UnityEngine;using System.Collections;using UnityEditor; public class ZYResetTheAnimator : MonoBehaviour { [MenuItem("ZY/ResetTheAnimator")] stat 阅读全文
摘要:
//动态添加按钮事件 Button temp = Item.GetComponent<Button>(); temp.onClick.AddListener(delegate () { this.Btn_SelectFileSection_Click(temp.gameObject); }); pu 阅读全文