Beispiel #1
0
    void Start()
    {
        blackboard   = GetComponent <HEN_BLACKBOARD>();
        wanderAround = GetComponent <WanderAround>();
        arrive       = GetComponent <Arrive>();
        audioSource  = GetComponent <AudioSource>();

        wanderAround.seekWeight = 0.0f;
        wanderAround.attractor  = blackboard.attractor;

        wanderAround.enabled = false;
        arrive.enabled       = false;
    }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        wanderAround = GetComponent <WanderAround>();
        flee         = GetComponent <Flee>();
        ks           = GetComponent <KinematicState>();
        theHen       = GameObject.Find("HEN");
        blackboard   = theHen.GetComponent <HEN_BLACKBOARD>();

        wanderAround.attractor  = theHen;
        wanderAround.seekWeight = 0.4f;
        flee.target             = theHen;
        wanderAround.enabled    = false;
        flee.enabled            = false;
    }