using UnityEngine; using System.Collections; using System.Collections.Generic; public class Elf : Regist { #region Config public Flower Flower; public Animator Animator; public Transform Root; #endregion public void Save() { Flower.ElfList.Remove(Root); ResourceManager.Save(Root); } public override bool InitAtOnce() { if (base.InitAtOnce()) { return true; } Root = transform.parent; Animator = GetComponent(); return false; } }