示例#1
0
 // Use this for initialization
 void Awake()
 {
     CenterProcess     = GameObject.Find("CenterProcess").GetComponent <CenterProcess>();
     _state            = this.gameObject.GetComponent <State>();
     _state.Maxhealth += UpgradeTree.PlayerArchive.ExtraCastleHpLevel * SystemOption.ExCastleHpPerL;
     _state.Health    += UpgradeTree.PlayerArchive.ExtraCastleHpLevel * SystemOption.ExCastleHpPerL;
     CenterProcess.SetTargetState(this.gameObject);
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     CenterProcess.SetTargetState(this.gameObject);
 }