AsteroidSpawner.OnDrawGizmosSelected C# (CSharp) 메소드

OnDrawGizmosSelected() 공개 메소드

public OnDrawGizmosSelected ( ) : void
리턴 void
    void OnDrawGizmosSelected()
    {
        // We want to draw yellow stuff
        Gizmos.color = Color.yellow;

        // Tell the Gizmos drawer to use our current position and scale
        Gizmos.matrix = transform.localToWorldMatrix;

        // Draw a sphere representing the spawn area
        Gizmos.DrawWireSphere(Vector3.zero, radius);
    }