void Start()
    {
        GameObject go = new GameObject();
        go.name = "SelectionScreenCamera";
        selectionScreenCamera = go.AddComponent<Camera>();
        selectionScreenCamera.clearFlags = CameraClearFlags.Depth;
        selectionScreenCamera.isOrthoGraphic = true;
        selectionScreenCamera.orthographicSize = 3;
        selectionScreenCamera.cullingMask = ( 1 << LayerMask.NameToLayer( "SelectionScreen" ) );

        if( selectionScreenPrefab )
        {
            selectionScreenObject = Instantiate( selectionScreenPrefab ) as GameObject;
            selectionScreenObject.transform.parent = go.transform;
            selectionScreenObject.transform.localPosition = Vector3.up * offscreenYValue + Vector3.forward * zOffset;
        }

        if( selectionScreenObject )
            controller = selectionScreenObject.GetComponent<SelectionScreenController>();

        SetArrow( TextType.Invalid );

        int length = Enum.GetNames( typeof( TextType ) ).Length - 1;

        for( int i = 0; i < length; i++ )
            SetText( (TextType)i, "" );

        RaiseScreen();
    }
 public static void SetSlotSprite( int slotNumber, SelectionScreenController.SlotSprite slotSprite )
 {
     if( instance )
         instance.internalSetSlotSprite( slotNumber, slotSprite );
 }
    private void internalSetSlotSprite( int slotNumber, SelectionScreenController.SlotSprite slotSprite )
    {
        switch( slotNumber )
        {
            case 1:
            {
                for( int i = 0; i < controller.slot1Sprites.Length; i++ )
                    controller.slot1Sprites[i].enabled = ( i == (int)slotSprite );
            } break;

            case 2:
            {
                for( int i = 0; i < controller.slot2Sprites.Length; i++ )
                    controller.slot2Sprites[i].enabled = ( i == (int)slotSprite );
            } break;

            case 3:
            {
                for( int i = 0; i < controller.slot3Sprites.Length; i++ )
                    controller.slot3Sprites[i].enabled = ( i == (int)slotSprite );
            } break;

            case 4:
            {
                for( int i = 0; i < controller.slot4Sprites.Length; i++ )
                    controller.slot4Sprites[i].enabled = ( i == (int)slotSprite );
            } break;
        }
    }