コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        windArrow.transform.position = windArea.transform.position;
        if (windArea.GetWind() != Vector3.zero)
        {
            windArrow.transform.rotation = Quaternion.LookRotation(windArea.GetWind(), Vector3.up);
        }
        Vector3 scale = transform.localScale;

        windArrow.transform.localScale = new Vector3(initArrowScale.x * scale.x, initArrowScale.y * scale.y, initArrowScale.z * scale.z);
    }