void ConnectAssemblyCurrent() { g.ColorGo(goKeyHoleCurrent, Color.green); g.ColorGo(goKeyCurrent, Color.green); // g.RenameChild(goKeyCurrent, "Key", "KeyLocked"); g.RenameChild(goKeyHoleCurrent, "KeyHole", "KeyHoleLocked"); // goKeyCurrent.transform.parent = goKeyHoleCurrent.transform; // goKeyCurrent.transform.localPosition = Vector3.zero; goKeyCurrent.transform.localEulerAngles = Vector3.zero; // g.assetMgr.SetAsset(goKeyHoleCurrent); // g.assetMgr.AddHelpers(); // g.smoothMgr.LoadLastsAndTargets(); }
void Attach() { g.RenameChild(goBoltCurrent, "Bolt", "BoltLocked"); g.RenameChild(goNutCurrent, "Nut", "NutLocked"); // GameObject goNutLocked = g.assetMgr.GetChildByName(goNutCurrent, "NutLocked"); // goBoltCurrent.transform.position = goNutLocked.transform.position; // goBoltCurrent.transform.parent = goNutCurrent.transform; // string txt = goNutCurrent.name; g.assetMgr.SetAsset(goNutCurrent); goBoltCurrent = null; // g.assetMgr.AddHelpers(); // g.smoothMgr.LoadLastsAndTargets(); // goNutCurrent = g.assetMgr.GetChildByName(g.goAssets, txt); goBoltLocked = g.assetMgr.GetChildByName(goNutCurrent, "BoltLocked"); }