Exemplo n.º 1
0
    void Awake()
    {
        TouchArea.size   = new Vector2(TouchArea.size.x, TouchArea.size.y + ScreenRatio.SizeDiff());
        TouchArea.offset = new Vector2(TouchArea.offset.x, TouchArea.offset.y + ScreenRatio.SizeDiff() / 2);
        //new scale
        float scale = ScreenRatio.CameraSize / 4.8f;

        ShelfList.transform.localScale    = new Vector3(scale, scale, 0);
        ShelfList.transform.localPosition = new Vector3(ShelfList.transform.localPosition.x,
                                                        ShelfList.transform.localPosition.y + ScreenRatio.SizeDiff() / 2, 0);
        PrevPageArrow.OnReleased += PrevPage;
        NextPageArrow.OnReleased += NextPage;
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     //set boxcollider size due to Area size
     //640x960 = 6.3
     touchArea.size = new Vector2(touchArea.size.x, touchArea.size.y + ScreenRatio.SizeDiff() * 2);
 }
Exemplo n.º 3
0
 void Awake()
 {
     TouchCollider.size   = new Vector2(TouchCollider.size.x, TouchCollider.size.y + ScreenRatio.SizeDiff() * 2);
     TouchCollider.offset = new Vector2(TouchCollider.offset.x, TouchCollider.offset.y - ScreenRatio.SizeDiff());
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     touchArea.size = new Vector2(touchArea.size.x, touchArea.size.y + ScreenRatio.SizeDiff() * 2);
 }