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