using System.Collections; using System.Collections.Generic; using UnityEngine; /******************************************************************************* *Create By CG *Function 出现可以旋转的按钮,点击后旋转 *******************************************************************************/ namespace ZXK.GYJQR { public class XuanZhuanCtrl : Step_0 { public XuanZhuanCtrl(AZBS itemAttr) : base(itemAttr) { } /// /// 执行位置坐标变换的逻辑 /// public void OnExcutePathMove(string RotGeoName, Vector3 RotInit) { GameObject obj = ModelManager.Instance.SeekAZBSPart(RotGeoName); obj.transform.rotation = Quaternion.Euler(RotInit); PathManager pm = obj.GetComponent(); pm.adjustAngleMenu.gameObject.SetActive(true); pm.adjustAngleMenu.identityID = _ItemAttr.id.ToString();// identityID; } } }