摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(SpriteRenderer))] public class SpriteAnimator 阅读全文
摘要:
MenuItem Attribute允许你在主菜单中添加新的选项。而这个菜单选项来自于一个静态函数。 public class TestMenuItem { // Creates a new menu item 'Examples > Create Prefab' in the main menu. 阅读全文
摘要:
首先需要一个物件对象 public class KitchenObject : MonoBehaviour { public KitchenObjectHolder Holder { get; set; } public void ResetHolder() { if (Holder == null 阅读全文