Beispiel #1
0
 public AIBeliefs getBeliefs()
 {
     if (beliefs == null)
     {
         beliefs = new AIBeliefs(this);
     }
     return(beliefs);
 }
Beispiel #2
0
 // Start is called before the first frame update
 protected override void Start()
 {
     base.Start();
     behaviours       = new AIBehaviour[] { new FollowBehaviour(this, range), new ShootBehaviour(this) };
     root             = new AIBehaviour(this, behaviours);
     currentBehaviour = root;
     beliefs          = new AIBeliefs(this);
     unragdoll();
     weapon.user = this;
 }