Exemplo n.º 1
1
 void Awake()
 {
     base.Awake();
     nguiBc=Instantiate(nguiBcPrefab) as NguiButton;
     nguiBc.name=nguiBcPrefab.name;
     nguiBc.chess=this;
     // nguiBc.transform.parent=nguiBcPrefab.transform;
     var na=GetComponent<NguiAnchor>();
     na.ngui=nguiBc.transform;
     c=GetComponent<Creature>();
     card=Data.Card.find(name.Replace("(Clone)",""));
     hp.length=card.life;
 }
Exemplo n.º 2
0
 public virtual void Awake()
 {
     base.Awake();
     c=GetComponent<Creature>();
     // ccr=GetComponent<CharacterController>();
 }