コード例 #1
0
    public override void Begin()
    {
        base.Begin();

        LineOfSight.Extend();

        // If enemy can't see player when beginning pursuit, find a path
        if (!LineOfSight.CanSeePlayer)
        {
            PathFinder.FindPathTo(Player.Get.Position);
        }

        _pursueTimer = PursueTime;

        Debug.Log("Begin pursuing...");
    }