示例#1
0
    void Start( )
    {
        Assert.IsNotNull(heli);
        Assert.IsNotNull(altitudeToSeaLabel);
        Assert.IsNotNull(altitudeToGroundLabel);

        altitudePoint = heli.GetAltitudePoint( );
        worldScale    = heli.GetWorldScale( );
        Assert.IsNotNull(altitudePoint);
    }
示例#2
0
    private bool HeliIsAlmostStill()
    {
        Physics.Raycast(heli.GetAltitudePoint().position, Vector3.down, out hit, layerMask);

        return(heli.GetVelocity( ) <= minLandingVelocity && (hit.distance * worldScale) <= minLandingAltitude);
    }