Exemplo n.º 1
0
        protected override void InitializeInstance(BehaviorTree instance)
        {
            instance.SetVariableValue(PATROL_POINTS_VARIABLE_NAME, m_PatrolPoints);

            base.InitializeInstance(instance);
        }
Exemplo n.º 2
0
 private void Init()
 {
     selfController = GetComponent <RoleController>();
     behaviorTree   = gameObject.GetComponent <BehaviorDesigner.Runtime.BehaviorTree>();
 }
Exemplo n.º 3
0
 protected virtual void InitializeInstance(BehaviorTree instance)
 {
     Vector2 direction = new Vector2(Random.Range(-1.0f, 1.0f), Random.Range(-1.0f, 1.0f)).normalized;
     Vector2 position = direction * Random.Range(0.0f, m_SpawnRadius);
     instance.transform.localPosition = position;
 }
Exemplo n.º 4
0
 public void Awake(BehaviorDesigner.Runtime.BehaviorTree behaviorTree)
 {
     Behavior = behaviorTree;
 }