コード例 #1
0
    void Start()
    {
        angle = GetComponent <CannonController>();
        txt   = GetComponentInChildren <TextMesh>();
        string a = string.Format("{0:F2}", angle.GetAngle()) + "°";

        txt.text = a;
    }
コード例 #2
0
    void Update()
    {
        string a = string.Format("{0:F2}", angle.GetAngle()) + "°";

        txt.text = a;
    }