Ejemplo n.º 1
0
    void OnDrawGizmos()
    {
        if (player && DEBUG)
        {
            // Final position
            MyDraw.DrawCircle(finalPosition - Vector3.up * finalPosition.y, 2, Color.yellow);

            // Draw camera Position
            MyDraw.DrawCross(transform.position - Vector3.up * transform.position.y, 1, Color.yellow);

            // Forward attractor
            MyDraw.DrawSquare(forwardAttractor, 0.5f, Color.green);
            Debug.DrawLine(player.position, forwardAttractor, Color.green);

            // // Snake body attractor
            // Gizmos.color = Color.red;
            // Gizmos.DrawWireCube( snakeBodyAttractor, Vector3.one );


            // // Influence range
            // Gizmos.DrawWireSphere( transform.position - Vector3.up * transform.position.y, outerRing );
            // Gizmos.DrawWireSphere( transform.position - Vector3.up * transform.position.y, innerRing );


            // Gizmos.color = Color.red;
            // Gizmos.DrawWireSphere( worldPos, 1f );
        }
    }