Esempio n. 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);
 }
Esempio n. 2
0
 // Update is called once per frame
 void Update()
 {
     CenterProcess.SetTargetState(this.gameObject);
 }