protected override void OnRestoreProps(ITaskProps props) { base.OnRestoreProps(props); this.props = (WaitEventTaskProps)props; }
public WaitEventTask(BehaviorTree tree, Task parentTask, uint id, WaitEventTaskDesc description) : base(tree, parentTask, id, description, new WaitEventTaskProps()) { this.description = description; props = (WaitEventTaskProps)Props; }