public void SelectOnePlanet(string name, System.Action cb = null, bool sendMsg = true, bool animating = true, float animationStartUniverseTime = -1) { if (selected) { //Debug.Log("Select Blocked!!!!!!!!!!!"); return; } if (planetMap.ContainsKey(name)) { PlanetObject sel = planetMap[name]; if (sendMsg && connectToServer) { MsgEntry me_toSend = sel.CreateMsgEntry(); SyncMsg sync = new SyncMsg(); sync.MsgEntry.Add(me_toSend); Debug.Log("Send select plaent![" + name + "]"); cm.SendMessage(sync); } } }
public void PutBackPlanet(bool animate = true) { if (!selected) { //Debug.Log("Back Blocked!!!!!!!!!!!!"); return; } if (connectToServer) { //Debug.Log("Send back planet!!!"); SyncMsg sync = new SyncMsg(); sync.MsgEntry.Add(new MsgEntry[1] { planetObject_notSelected.CreateMsgEntry() }); cm.SendMessage(sync); } else { // 单机版再说吧!! } }