Пример #1
0
    void SetStartPosition()
    {
        switch (cameraScript.deviceAspect)
        {
        case DeviceAspect.NewIphone:
            startPosition = new Vector2(myPersonalLibrary.RandomPicker <float> (-0.7f, 0.7f), startYPosition);
            break;

        case DeviceAspect.OldIphone:
            startPosition = new Vector2(myPersonalLibrary.RandomPicker <float> (-0.84f, 0.84f), startYPosition);
            break;

        case DeviceAspect.Ipad:
            startPosition = new Vector2(myPersonalLibrary.RandomPicker <float> (-0.95f, 0.95f), startYPosition);
            break;

        case DeviceAspect.Android10by16:
            startPosition = new Vector2(myPersonalLibrary.RandomPicker <float> (-0.78f, 0.78f), startYPosition);
            break;

        case DeviceAspect.Android3by5:
            startPosition = new Vector2(myPersonalLibrary.RandomPicker <float> (-0.75f, 0.75f), startYPosition);
            break;
        }
    }
Пример #2
0
 void Start()
 {
     mainCamera.backgroundColor = myPersonalLibrary.RandomPicker <Color> (darkBlue, blueBlack, greenBlue, darkishGrey, Grey);
 }