예제 #1
1
파일: Chess.cs 프로젝트: QuenZhan/EWP
 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;
 }
예제 #2
0
 public virtual void Awake()
 {
     base.Awake();
     c=GetComponent<Creature>();
     // ccr=GetComponent<CharacterController>();
 }