基本的回合逻辑和项目框架搭建 using UnityEngine; using System.Collections; public class Fighter : MonoBehaviour { public GameObject objPic = null; public GameObject objHp = null; public GameObject objMp = null; //value begin private string id = null; public string getId(){ return id; } public void setId(string id){ this.id = id; if(id==null){ gameObject.SetActive(false); }else{ Texture txr = FighterHelper.GetTextureById(id); if(txr==null){ gameObject.SetActive(false); }else{
2022-09-22 14:07:05 3.31MB unity 回合制卡牌 unity2D
1