//旋转装饰物替换装饰物 public void SetDecorateInfo(int idxDecorateRotate, long SoilId, int CropGoodId, int regionId) { this.DecorateType = TypeManorDecorate.Decorate; this.idxDecorateRotate = idxDecorateRotate; this.SoilId = SoilId; this.CropGoodId = CropGoodId; this.regionId = regionId; }
//UI拖入场景的时候调用 public void Init(GameObject goRootTab, TypeManorDecorate DecorateType) { this.DecorateType = DecorateType; //初始拖拽 旋转下标默认为0 idxDecorateRotate = 0; isBeginPlace = false; ResetHandleVar(); isPress = true; GoUIRootScroll = goRootTab; BeginDrag(false); Root2dSceneManager._instance.currHandleTile = gameObject; }