// This function is called when the node is in execution public override Status Update() { // Do stuff if (stater == null) { return(Status.Error); } stater.Heal(addHP.Value); // Never forget to set the node status return(Status.Success); //Ready: 尚未被執行。 //Success: 動作執行成功。 //Failure: 動作執行失敗。 //Error: 執行錯誤。 //Running: 動作還需要更多Frame執行,像是等待時間的就是利用這個狀態檢查倒數,所以才一定要放在Update()底下 }