Beispiel #1
0
    bool CanAttack()
    {
        Vector3 nearest = GenerateLevel.NearestTarget(GenerateLevel.Pits, Location);

        if (Vector3.Distance(nearest, Location) > 2 && canAttack)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }