示例#1
0
    // Update is called once per frame
    void Update()
    {
        print(agent.speed);
        print(GetTargetPosition());
        basicProperties.NavigateMonster(GetTargetPosition());
        GameObject attraction = basicProperties.GetAttractionPeek();

        Physics.IgnoreCollision(GetComponent <Collider> (), player.GetComponent <Collider> ()
                                , basicProperties.CheckDisability() || (attraction && attraction.name != "Player" && attraction.GetComponent <AIInformation> ().floor == GetComponent <AIInformation> ().floor) || player.GetComponent <Character>().isInvincible);
    }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     basicProperties.NavigateMonster(GetTargetPosition());
     Physics.IgnoreCollision(GetComponent <Collider> (), player.GetComponent <Collider> ()
                             , basicProperties.CheckDisability() || basicProperties.GetAttractions().Count > 0 || player.GetComponent <Character>().isInvincible);
 }