Skip to content

SradnickDev/BehaviourTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BehaviourTree

I used this Behaviour Tree in an RTS i made for a while. Contains some basic Examples.

Tree creations looks like this.

public override Node Tree()
{
	var movement = new Sequence(new SetRandomDestination(RandomPositionRadius),
								new ReachedDestination(),
								new WaitSeconds(1),
								new Patrol(PatrolPoints, transform.position),
								new ReachedDestination(),
								new WaitSeconds(1));
	var repeatMovement = new Repeater(movement);
	return new Sequence(repeatMovement)

About

Behaviour Tree implementaion in Unity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages