1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
using BehaviorTreeEngine; public class NewForestNode : ForestNode { void Awake() { // Init node properties from xml files Init(0, ""); // Register this mono behavior node with its distinct composite (forest) index BtEngine.MonoBehaviorNode.Register(forestIndex, this); } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public override void OnConstruct() { // Put your code here to be invoked when this node is getting loaded } public override void OnDestruct() { // Put your code here to be invoked when this node is getting destroyed } } |
Copyright © 2016-2020 Qualgame, LLC