void Start() { magicCore = MagicCore.Instance; render = mapRoot.transform.GetChild(0).GetComponent <UiRender>(); Init(); addAtk.onClick.AddListener(AddAtk); DontDestroyOnLoad(this.gameObject); }