Commit df72c924 authored by shujianhe's avatar shujianhe

1

parent 6c045fb5
...@@ -920,6 +920,10 @@ PrefabInstance: ...@@ -920,6 +920,10 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: -707 value: -707
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 282682974999690270, guid: e2f00cfdb21d04b46adf17805f74f20c, type: 3}
propertyPath: m_Sprite
value:
objectReference: {fileID: 0}
- target: {fileID: 318640049537846573, guid: e2f00cfdb21d04b46adf17805f74f20c, type: 3} - target: {fileID: 318640049537846573, guid: e2f00cfdb21d04b46adf17805f74f20c, type: 3}
propertyPath: m_SizeDelta.x propertyPath: m_SizeDelta.x
value: 585.1997 value: 585.1997
......
...@@ -22,6 +22,7 @@ namespace Assets.scripts.Datas ...@@ -22,6 +22,7 @@ namespace Assets.scripts.Datas
public int autoSwitch = 0; public int autoSwitch = 0;
public int fillAnimation = 0; public int fillAnimation = 0;
public int vibration = 0; public int vibration = 0;
public string name = "main";
public string getHighlightId() public string getHighlightId()
{ {
return highlightId.ToString(); return highlightId.ToString();
......
...@@ -163,7 +163,7 @@ public class gameEndLogic : MonoBehaviour,IEventHandler ...@@ -163,7 +163,7 @@ public class gameEndLogic : MonoBehaviour,IEventHandler
GameObject gameShowBase = transform.Find("gameShowBase").gameObject; GameObject gameShowBase = transform.Find("gameShowBase").gameObject;
Image image = gameShowBase.GetComponent<Image>(); Image image = gameShowBase.GetComponent<Image>();
Texture2D texture = image.sprite.texture; //Texture2D texture = image.sprite.texture;
//Color[] colors = texture.GetPixels(0, 0, texture.width, texture.height); //Color[] colors = texture.GetPixels(0, 0, texture.width, texture.height);
//int cout = utilsTools.checkResetYuanJiao(colors, texture.width, texture.height, 65); //int cout = utilsTools.checkResetYuanJiao(colors, texture.width, texture.height, 65);
//if (cout > 0) //if (cout > 0)
...@@ -234,5 +234,9 @@ public class gameEndLogic : MonoBehaviour,IEventHandler ...@@ -234,5 +234,9 @@ public class gameEndLogic : MonoBehaviour,IEventHandler
} }
} }
} }
public void OnDestroy()
{
IRunEventManages.unOn(this, null);
ActionManages.clearAllAction();
}
} }
...@@ -78,6 +78,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -78,6 +78,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
transform.Find("gameEndOperBase").GetComponent<gameEndLogic>().initMember(); transform.Find("gameEndOperBase").GetComponent<gameEndLogic>().initMember();
transform.Find("tipSelectGroup").gameObject.SetActive(false); transform.Find("tipSelectGroup").gameObject.SetActive(false);
transform.Find("top").gameObject.SetActive(false); transform.Find("top").gameObject.SetActive(false);
utilsTools.setGDataByKey("PhoneOffsetValue", 50);
utilsTools.addTimer_Sec(gameObject, "loopGetHot", (String name) => utilsTools.addTimer_Sec(gameObject, "loopGetHot", (String name) =>
{ {
addHotParams<float>("TUSE_doubleTouchScale", "doubleTouchScale", float.TryParse); addHotParams<float>("TUSE_doubleTouchScale", "doubleTouchScale", float.TryParse);
...@@ -86,6 +87,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -86,6 +87,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
addHotParams<float>("TUSE_doubleTouchScale", "doubleTouchScale", float.TryParse); addHotParams<float>("TUSE_doubleTouchScale", "doubleTouchScale", float.TryParse);
addHotParams<float>("TUSE_doubleTouchScale", "doubleTouchScale", float.TryParse); addHotParams<float>("TUSE_doubleTouchScale", "doubleTouchScale", float.TryParse);
addHotParams<float>("TUSE_dyMinShowFontSize", "dyMinShowFontSize", float.TryParse); addHotParams<float>("TUSE_dyMinShowFontSize", "dyMinShowFontSize", float.TryParse);
addHotParams<int>("TUSE_PhoneOffsetValue", "PhoneOffsetValue", int.TryParse);
return true; return true;
}, 3, 0); }, 3, 0);
utilsTools.resetGameObjectTreeSize(gameObject, (String path) => utilsTools.resetGameObjectTreeSize(gameObject, (String path) =>
...@@ -184,6 +186,23 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -184,6 +186,23 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
} }
var maingameView = gameShowView.GetComponent<mainGameView>(); var maingameView = gameShowView.GetComponent<mainGameView>();
int idx = (int)objects[0]; int idx = (int)objects[0];
bool idxIsIndex = true;
if(objects.Count > 1)
{
idxIsIndex = (bool)objects[1];
}
if (idxIsIndex.Equals(false))
{
short gid = (short)idx;
for (int i = 0; i < groupInfos.Count; i++)
{
if (gid.Equals(groupInfos[i].gid))
{
idx = i;
break;
}
}
}
nowidx = idx; nowidx = idx;
var nowSelectGroupId = groupInfos[idx].gid; var nowSelectGroupId = groupInfos[idx].gid;
item = gridViewList.getObjectById(idx).GetComponent<colorItem>(); item = gridViewList.getObjectById(idx).GetComponent<colorItem>();
...@@ -254,6 +273,16 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -254,6 +273,16 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
{ {
int width, height; int width, height;
mainview.getSize(out width, out height); mainview.getSize(out width, out height);
short ystart = (short)(0 - faulTolerant + y);
short yend = (short)(0 + faulTolerant + y);
if (ystart < 0)
{
ystart = 0;
}
if (yend > height)
{
yend = (short)height;
}
if (isFirst) if (isFirst)
{ {
int flg = mainview.showAreaByPos(x, y, null,false); int flg = mainview.showAreaByPos(x, y, null,false);
...@@ -263,32 +292,50 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -263,32 +292,50 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
} }
else if(flg < -1) else if(flg < -1)
{ {
if (phoneClickByPos(ref mainview, (short)(x + faulTolerant * 1.5), y, faulTolerant, false)) return true;
if (phoneClickByPos(ref mainview, (short)(x - faulTolerant * 1.5), y, faulTolerant, false)) return true; for (short x1 = (short)(0 - faulTolerant); x1 < faulTolerant; x1 += 2)
if (phoneClickByPos(ref mainview, x, (short)(y + faulTolerant * 1.5), faulTolerant, false)) return true; {
if (phoneClickByPos(ref mainview, x, (short)(y + faulTolerant * 1.5), faulTolerant, false)) return true; short x2 = (short)(x + x1);
} if (x2 < 0 || x2 >= width)
{
continue;
} }
short ystart = (short)(0 - faulTolerant + y); for (short y1 = ystart; y1 < yend; y1 += 2)
short yend = (short)(0 - faulTolerant + y);
if(ystart < 0)
{ {
ystart = 0;
//if (phoneClickByPos(ref mainview, x2, y1, faulTolerant, false)) return true;
if (mainview.showAreaByPos(x2, y1, null, false) > 0)
{
return true;
}
}
}
if (phoneClickByPos(ref mainview, (short)(x + faulTolerant), (short)(y + faulTolerant), faulTolerant, false)) return true;
if (phoneClickByPos(ref mainview, (short)(x + faulTolerant), y, faulTolerant, false)) return true;
if (phoneClickByPos(ref mainview, (short)(x + faulTolerant), (short)(y - faulTolerant), faulTolerant, false)) return true;
if (phoneClickByPos(ref mainview, x, (short)(y - faulTolerant), faulTolerant, false)) return true;
if (phoneClickByPos(ref mainview, x, (short)(y + faulTolerant), faulTolerant, false)) return true;
if (phoneClickByPos(ref mainview, (short)(x - faulTolerant), (short)(y + faulTolerant), faulTolerant, false)) return true;
if (phoneClickByPos(ref mainview, (short)(x - faulTolerant), y, faulTolerant, false)) return true;
if (phoneClickByPos(ref mainview, (short)(x - faulTolerant), (short)(y - faulTolerant), faulTolerant, false)) return true;
return false;
} }
if(yend > height) {
yend = (short)height;
} }
for (short x1 = (short)(0 - faulTolerant);x1 < faulTolerant; x1+=2) for (short x1 = (short)(0 - faulTolerant); x1 < faulTolerant; x1 += 2)
{ {
short x2 = (short)(x + x1); short x2 = (short)(x + x1);
if(x2 < 0 || x2 >= width) if (x2 < 0 || x2 >= width)
{ {
continue; continue;
} }
for(short y1 = ystart;y1 < yend ;y1+=2) for (short y1 = ystart; y1 < yend; y1 += 2)
{ {
if (phoneClickByPos(ref mainview, x2, y1, faulTolerant, false)) return true; //if (phoneClickByPos(ref mainview, x2, y1, faulTolerant, false)) return true;
if (mainview.showAreaByPos(x2, y1, null, false) > 0)
{
return true;
}
} }
} }
return false; return false;
...@@ -310,14 +357,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -310,14 +357,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
} }
else//手机不容易点中 else//手机不容易点中
{ {
short faulTolerant = 12; short faulTolerant = (short)(utilsTools.getGDataByKey<int>("PhoneOffsetValue",50));
//for(short x1 = (short)(0 - faulTolerant);x1 < faulTolerant; x1++)
//{
// for(short y1 = (short)(0- faulTolerant);y1 < faulTolerant; y1++)
// {
// if(maingameView.showAreaByPos((short)(x+x1), (short)(y+y1), null) > 0) return;
// }
//}
phoneClickByPos(ref maingameView, x, y, faulTolerant, true); phoneClickByPos(ref maingameView, x, y, faulTolerant, true);
} }
...@@ -556,13 +596,21 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -556,13 +596,21 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
} }
void onGamePlayerEndHandlerEvent(List<UnityEngine.Object> uobjects,List<System.Object> objects) void onGamePlayerEndHandlerEvent(List<UnityEngine.Object> uobjects,List<System.Object> objects)
{ {
Debug.Log("游戏完成,播放结束动画"); //Debug.Log("游戏完成,播放结束动画");
transform.Find("gameProgressText").gameObject.SetActive(false); //transform.Find("gameProgressText").gameObject.SetActive(false);
transform.Find("gameProgress").gameObject.SetActive(false); //transform.Find("gameProgress").gameObject.SetActive(false);
areaGroupList.SetActive(false); //areaGroupList.SetActive(false);
transform.Find("groupListBg").gameObject.SetActive(false); //transform.Find("groupListBg").gameObject.SetActive(false);
gameEndLogic gameEndlogic = transform.Find("gameEndOperBase").GetComponent<gameEndLogic>(); //gameEndLogic gameEndlogic = transform.Find("gameEndOperBase").GetComponent<gameEndLogic>();
gameEndlogic.initView(); //gameEndlogic.initView();
//暂时调回放场景
utilsTools.sendEvent("CloseScenePrve");
utilsTools.addTimer_Update(gameObject, "close", (String name) =>
{
gameShowView.GetComponent<mainGameView>().onClear();
SceneManager.LoadScene("Scenes/replayeScene");
return false;
}, 10);
} }
void onSelectAreaEvent(List<UnityEngine.Object> uobjects, List<System.Object> objects) void onSelectAreaEvent(List<UnityEngine.Object> uobjects, List<System.Object> objects)
{ {
...@@ -573,13 +621,15 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -573,13 +621,15 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
if (nowAidByGid != nowidx) return; if (nowAidByGid != nowidx) return;
if (groupInfos != null) if (groupInfos != null)
{ {
int operId = 0; int operId = -1;
for (int i = 0; i < groupInfos.Count; i++) { for (int i = 0; i < groupInfos.Count; i++) {
if (groupInfos[i].gid.Equals(nowAidByGid)) if (groupInfos[i].gid.Equals(nowAidByGid))
{ {
operId = i; operId = i;
break;
} }
} }
if (operId.Equals(-1)) return;
var gridViewList = areaGroupList.GetComponent<gameSceneAreaGroupHandler>(); var gridViewList = areaGroupList.GetComponent<gameSceneAreaGroupHandler>();
colorItem item = null; colorItem item = null;
groupInfos[operId].show++; groupInfos[operId].show++;
......
...@@ -122,7 +122,7 @@ public class gameUserInfos : MonoBehaviour, IEventHandler ...@@ -122,7 +122,7 @@ public class gameUserInfos : MonoBehaviour, IEventHandler
public void startId(string id,netLableImageItem jsondata = null) public void startId(string id,netLableImageItem jsondata = null)
{ {
GameBackJavaData gameBackJavaData = new GameBackJavaData(); GameBackJavaData gameBackJavaData = new GameBackJavaData();
gameBackJavaData.name = "main"; gameBackJavaData.name = utilsTools.getGDataByKey<string>("Native_name","");
gameBackJavaData.schedule = 0; gameBackJavaData.schedule = 0;
if(jsondata != null) if(jsondata != null)
{ {
......
...@@ -80,6 +80,7 @@ public class Native : MonoBehaviour ...@@ -80,6 +80,7 @@ public class Native : MonoBehaviour
utilsTools.setGDataByKey("highlight_areas", settnigToGame.getHighlightId()); utilsTools.setGDataByKey("highlight_areas", settnigToGame.getHighlightId());
utilsTools.setGDataByKey("uid", settnigToGame.uid); utilsTools.setGDataByKey("uid", settnigToGame.uid);
utilsTools.setGDataByKey("fillanimation", settnigToGame.getFillAnimation()); utilsTools.setGDataByKey("fillanimation", settnigToGame.getFillAnimation());
utilsTools.setGDataByKey("Native_name", settnigToGame.name);
} }
......
...@@ -44,17 +44,17 @@ public class replayerBack : MonoBehaviour, IEventHandler ...@@ -44,17 +44,17 @@ public class replayerBack : MonoBehaviour, IEventHandler
initData(); initData();
return false; return false;
}, 5); }, 5);
string tuijian = "{\"status\":200,\"msg\":\"请求成功\",\"sign\":\"\",\"result\":{\"data\":["; //string tuijian = "{\"status\":200,\"msg\":\"请求成功\",\"sign\":\"\",\"result\":{\"data\":[";
for (int i = 0; i < 8; i++) //for (int i = 0; i < 8; i++)
{ //{
tuijian = tuijian + json + ","; // tuijian = tuijian + json + ",";
} //}
tuijian = tuijian + json + "],\"extras\":null},\"enc\":null,\"security\":\"\"}"; //tuijian = tuijian + json + "],\"extras\":null},\"enc\":null,\"security\":\"\"}";
utilsTools.addTimer_Sec(gameObject, "__", (string _) => //utilsTools.addTimer_Sec(gameObject, "__", (string _) =>
{ //{
onTuiJianBack(tuijian); // onTuiJianBack(tuijian);
return false; // return false;
}, 1); //}, 1);
transform.Find("gameEndOperBase/gameShowBase/btnsBase/saveOptions").gameObject.SetActive(false); transform.Find("gameEndOperBase/gameShowBase/btnsBase/saveOptions").gameObject.SetActive(false);
showPageByJinDu(false); showPageByJinDu(false);
transform.Find("clear").gameObject.SetActive(false); transform.Find("clear").gameObject.SetActive(false);
...@@ -110,6 +110,8 @@ public class replayerBack : MonoBehaviour, IEventHandler ...@@ -110,6 +110,8 @@ public class replayerBack : MonoBehaviour, IEventHandler
{ {
gameScenUser.thumbnailUrl = jsonData.getSmallLineUrl(); gameScenUser.thumbnailUrl = jsonData.getSmallLineUrl();
} }
string hist = utilsDB.getDBStringDataByKey("history_" + jsonData.id, "");
gameScenUser.setShowAreaids(hist);
utilsTools.sendEventObjectParams("initViewShowData", gameScenUser); utilsTools.sendEventObjectParams("initViewShowData", gameScenUser);
} }
//onGameViewOnInitEndEvent //onGameViewOnInitEndEvent
...@@ -531,4 +533,9 @@ public class replayerBack : MonoBehaviour, IEventHandler ...@@ -531,4 +533,9 @@ public class replayerBack : MonoBehaviour, IEventHandler
onSaveToMp4Handler(); onSaveToMp4Handler();
} }
} }
public void OnDestroy()
{
IRunEventManages.unOn(this, null);
ActionManages.clearAllAction();
}
} }
...@@ -43,7 +43,7 @@ public class mainGameView : MonoBehaviour ...@@ -43,7 +43,7 @@ public class mainGameView : MonoBehaviour
protected short bianlun = -1; protected short bianlun = -1;
protected short fullShow = -2; protected short fullShow = -2;
protected Texture2D thumbnailTexture2d = null; protected Texture2D thumbnailTexture2d = null;
private bool isDebugTestToEnd = false; private bool isDebugTestToEnd = true;
public GameObject clickPosEff = null; public GameObject clickPosEff = null;
Dictionary<string, Color[]> allColor = new Dictionary<string, Color[]>(); Dictionary<string, Color[]> allColor = new Dictionary<string, Color[]>();
[SerializeField] [SerializeField]
...@@ -1028,6 +1028,7 @@ public class mainGameView : MonoBehaviour ...@@ -1028,6 +1028,7 @@ public class mainGameView : MonoBehaviour
} }
public virtual int showAreaByPos(short x,short y,OnAreaHandler showBack,bool ignoreGid = false) public virtual int showAreaByPos(short x,short y,OnAreaHandler showBack,bool ignoreGid = false)
{ {
Debug.Log("x = " + x.ToSafeString() + "y = " + y.ToSafeString() + " ignoreGid = " + ignoreGid.ToSafeString());
if (x >= digitMatrix.RowCount || y >= digitMatrix.ColumnCount || this.nowSelectgid < 0 || x < 0 || y < 0) if (x >= digitMatrix.RowCount || y >= digitMatrix.ColumnCount || this.nowSelectgid < 0 || x < 0 || y < 0)
{ {
if(showBack!= null) if(showBack!= null)
...@@ -1317,6 +1318,8 @@ public class mainGameView : MonoBehaviour ...@@ -1317,6 +1318,8 @@ public class mainGameView : MonoBehaviour
public void onClear() public void onClear()
{ {
if (thumbnailTexture2d != null) if (thumbnailTexture2d != null)
{
if (allColor.ContainsKey("thumbnail"))
{ {
thumbnailTexture2d.SetPixels(allColor["thumbnail"]); thumbnailTexture2d.SetPixels(allColor["thumbnail"]);
string path = gameScenUseInfo.getLocalThumbnailPath(); string path = gameScenUseInfo.getLocalThumbnailPath();
...@@ -1327,7 +1330,7 @@ public class mainGameView : MonoBehaviour ...@@ -1327,7 +1330,7 @@ public class mainGameView : MonoBehaviour
} }
utilsTools.saveByteToPath(utilsTools.ScaleTexture(thumbnailTexture2d, Convert.ToInt32(sltTextureSize.x), Convert.ToInt32(sltTextureSize.y)).EncodeToJPG(), path); utilsTools.saveByteToPath(utilsTools.ScaleTexture(thumbnailTexture2d, Convert.ToInt32(sltTextureSize.x), Convert.ToInt32(sltTextureSize.y)).EncodeToJPG(), path);
utilsTools.saveByteToPath(thumbnailTexture2d.EncodeToJPG(), path); utilsTools.saveByteToPath(thumbnailTexture2d.EncodeToJPG(), path);
}
Destroy(thumbnailTexture2d); Destroy(thumbnailTexture2d);
thumbnailTexture2d = null; thumbnailTexture2d = null;
} }
...@@ -1376,27 +1379,26 @@ public class mainGameView : MonoBehaviour ...@@ -1376,27 +1379,26 @@ public class mainGameView : MonoBehaviour
int aidsLen = aids.Count(); int aidsLen = aids.Count();
//查找 //查找
utilsTools.addTimer_Sec(gameObject, "autoFill", (string _) => utilsTools.addTimer_Sec(gameObject, "autoFill", (string _) =>
{
for(int i = 0;i < 2; i++)
{ {
short aid = aids[idx]; short aid = aids[idx];
var infos = gameidJsondata.getAid(aid); var infos = gameidJsondata.getAid(aid);
showAreaByPos(infos.px, infos.py, null,true); if(infos.gid.Equals(nowSelectgid) == false)
idx++;
if(idx.Equals(aidsLen))
{ {
utilsTools.setGDataByKey("enableZoomMove", true); int gid = infos.gid;
return false; utilsTools.sendEventObjectParams("switchGameAreaGroupId", gid, false);
} }
aid = aids[idx]; showAreaByPos(infos.px, infos.py, null, true);
infos = gameidJsondata.getAid(aid);
showAreaByPos(infos.px, infos.py, null,true);
idx++; idx++;
if (idx.Equals(aidsLen)) if (idx.Equals(aidsLen))
{ {
utilsTools.setGDataByKey("enableZoomMove", true); utilsTools.setGDataByKey("enableZoomMove", true);
return false; return false;
} }
}
return true; return true;
}, 1, 10); }, 0.8, 10);
} }
public void onTipHandler() public void onTipHandler()
{ {
......
...@@ -23,25 +23,6 @@ public class colorItem : MonoBehaviour ...@@ -23,25 +23,6 @@ public class colorItem : MonoBehaviour
private List<Vector2> initScaleSize = new List<Vector2>(); private List<Vector2> initScaleSize = new List<Vector2>();
private float offset = 0; private float offset = 0;
void initMember1()
{
if(effectImg == null)
{
var selfRectTrans = GetComponent<RectTransform>();
normalScale = transform.localScale * 0.85f;
transform.localScale = normalScale;
Vector2 listViewTempCellSize = utilsTools.getGDataByKey<Vector2>("listViewTempCellSize", Vector2.zero);
var size1 = listViewTempCellSize;// new Vector2(selfRectTrans.sizeDelta.x * selfRectTrans.localScale.x, selfRectTrans.sizeDelta.y * selfRectTrans.localScale.y);
for (int i = 0; i < transform.childCount; i++)
{
var temp = transform.GetChild(i).GetComponent<RectTransform>();
temp.localScale = new Vector3(temp.localScale.x * size1.x / 125f / 1.2f,temp.localScale.y * size1.y/125f / 1.2f);
initScaleSize.Add(new Vector2(temp.localScale.x,temp.localScale.y));
}
effectImg = transform.Find("circle").GetComponent<gameGroupEffect>();
}
}
void initMember() void initMember()
{ {
if(effectImg == null) if(effectImg == null)
...@@ -94,11 +75,13 @@ public class colorItem : MonoBehaviour ...@@ -94,11 +75,13 @@ public class colorItem : MonoBehaviour
ActionManages.addCallBackByLen(gameObject, 1000, 0.25f, (float _) => ActionManages.addCallBackByLen(gameObject, 1000, 0.25f, (float _) =>
{ {
transform.localPosition = new Vector2(x, 0 - (transform.localScale.y * rectTransform.rect.height) / 2 - offset); //transform.localPosition = new Vector2(x, 0 - (transform.localScale.y * rectTransform.rect.height) / 2 - offset);
rectTransform.anchoredPosition = new Vector2(rectTransform.anchoredPosition.x, 0);
}, (GameObject gobject, int id) => }, (GameObject gobject, int id) =>
{ {
float a = transform.localScale.y * rectTransform.rect.height; //float a = transform.localScale.y * rectTransform.rect.height;
transform.localPosition = new Vector2(x, 0 - (transform.localScale.y * rectTransform.rect.height) / 2 - offset); //transform.localPosition = new Vector2(x, 0 - (transform.localScale.y * rectTransform.rect.height) / 2 - offset);
rectTransform.anchoredPosition = new Vector2(rectTransform.anchoredPosition.x, 0);
}); });
} }
public void switchPlayAnimation1() public void switchPlayAnimation1()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment