unity回合制卡牌demo

时间:2022-09-22 10:21:02
【文件属性】:

文件名称:unity回合制卡牌demo

文件大小:3.31MB

文件格式:7Z

更新时间:2022-09-22 10:21:02

unity 回合制卡牌 unity2D

基本的回合逻辑和项目框架搭建 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{


网友评论