Exemple #1
0
    public void InitPoints(int _screens)
    {
        screens = _screens;
        points  = new float[screens];
        GTil.Init(this);

        if (screens > 1)
        {
            stepSize = 1 / (float)(screens - 1);

            for (int i = 0; i < screens; i++)
            {
                points[i] = i * stepSize;
            }
        }
        else
        {
            points[0] = 0;
        }
    }
 private void Start()
 {
     SetCamera();
     GTil.Init(this);
 }
Exemple #3
0
 private void Start()
 {
     GTil.Init(this);
 }
 private void SetCamera()
 {
     GetComponent <Canvas>().worldCamera = Camera.main;
     GTil.Init(this);
 }