Exemplo n.º 1
0
    public Vector2 ToVector2()
    {
        Vector2 result = Vector2.zero;

        result.x = x.ToFloat();
        result.y = y.ToFloat();
        return(result);
    }
Exemplo n.º 2
0
    void OnDrawGizmosSelected()
    {
        Gizmos.color = Color.blue;
        Gizmos.DrawWireSphere(transform.position, Mathf.Sqrt(dtrmSqTargetPositionReach.ToFloat()));

        Gizmos.color = Color.green;
        Gizmos.DrawWireSphere(transform.position, Mathf.Sqrt(dtrmSqTargetActorReach.ToFloat()));

        Gizmos.color = Color.cyan;
        Gizmos.DrawWireSphere(transform.position, Mathf.Sqrt(dtrmSqTargetActorFollow.ToFloat()));

        Gizmos.color = Color.red;
        Gizmos.DrawWireSphere(transform.position, Mathf.Sqrt(dtrmSqTargetActorBump.ToFloat()));
    }