Example #1
0
    private void Start()
    {
        // Set List Position And BoxActive On Platform
        for (int i = 0; i < Length; i++)
        {
            for (int j = 0; j < Width; j++)
            {
                //PositionMesh[i,j] = new Vector3((j + 1) * 2 + (MouseMove.transform.position.x - (MouseMove.DistanceBetweenSave * 2)), 0, (i + 1) * 2);
                PositionMesh[i, j] = new Vector3((j + 1) * (MouseMove.DistanceBetweenHorizontalSave), 1, (i + 1) * (MouseMove.DistanceBetweenHorizontalSave));
                BoxMatrix[i, j]    = false;
            }
        }

        BackgroundeUse = TakeBackground.GetBackGround();

        // Background
        if (gameObject.name == "Platform1")
        {
            BackgroundeUse.transform.position = transform.position;
            BackgroundeUse.SetActive(true);
        }
    }