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