25 lines
954 B
C#
25 lines
954 B
C#
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) { }
|
|
/// <summary>
|
|
/// 执行位置坐标变换的逻辑
|
|
/// </summary>
|
|
public void OnExcutePathMove(string RotGeoName, Vector3 RotInit)
|
|
{
|
|
GameObject obj = ModelManager.Instance.SeekAZBSPart(RotGeoName);
|
|
obj.transform.rotation = Quaternion.Euler(RotInit);
|
|
PathManager pm = obj.GetComponent<PathManager>();
|
|
pm.adjustAngleMenu.gameObject.SetActive(true);
|
|
pm.adjustAngleMenu.identityID = _ItemAttr.id.ToString();// identityID;
|
|
}
|
|
}
|
|
} |