コード例 #1
0
        void UpdateRotByCellDir()
        {
            Vector3    dirVec = CellObjCtrlUtils.GetDirVector3(_cctrl);
            Quaternion rot    = Quaternion.FromToRotation(Vector3.right, dirVec);

            transform.rotation = rot;
        }