using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class scr : MonoBehaviour
{
    GameObject serialIn;
    Serial script;
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("start");
        serialIn = GameObject.Find("serialIn");
        script = serialIn.GetComponent<Serial>();
    }

    // Update is called once per frame
    void Update()
    {
        float data = script.mcData;
        float i = data / 100;
        this.transform.localScale = new Vector3(1, i, 1);
    }
}
