|
@@ -29,14 +29,32 @@ namespace Subworlds.Patches
|
|
|
Core.shipPorterPlaced = true;
|
|
Core.shipPorterPlaced = true;
|
|
|
if (a == 0 || a == 1 || a == 2 || a == 3 || a == 4 || a == 5)
|
|
if (a == 0 || a == 1 || a == 2 || a == 3 || a == 4 || a == 5)
|
|
|
{
|
|
{
|
|
|
- var portal = (GameObject)Network.Instantiate((GameObject)Resources.Load("portal"), transform.position + new Vector3(0, 1.5f - 0.05f, 0.2f), Quaternion.identity, 0);
|
|
|
|
|
|
|
+ var portal = (GameObject)Network.Instantiate((GameObject)Resources.Load("portal"), transform.position + new Vector3(-0.5f, 1.5f - 0.05f, 0.2f), Quaternion.identity, 0);
|
|
|
portal.name = "portal/5/obj";
|
|
portal.name = "portal/5/obj";
|
|
|
var iUA = portal.transform.GetChild(0).gameObject;
|
|
var iUA = portal.transform.GetChild(0).gameObject;
|
|
|
portal.GetComponent<NetworkView>().RPC("Activate", RPCMode.All, new object[0]);
|
|
portal.GetComponent<NetworkView>().RPC("Activate", RPCMode.All, new object[0]);
|
|
|
iUA.GetComponent<NetworkView>().RPC("Set", RPCMode.AllBuffered, new object[] { Core.shipPlanet.GetID(), 0, 5 });
|
|
iUA.GetComponent<NetworkView>().RPC("Set", RPCMode.AllBuffered, new object[] { Core.shipPlanet.GetID(), 0, 5 });
|
|
|
___networkStuff[___temp] = portal;
|
|
___networkStuff[___temp] = portal;
|
|
|
___temp++;
|
|
___temp++;
|
|
|
- var crates = (GameObject)Network.Instantiate(Resources.Load("obj/Subworlds/BrokenCrates1"), transform.position + new Vector3(2, 0, 0.2f), Quaternion.identity, 0);
|
|
|
|
|
|
|
+ var crates = (GameObject)Network.Instantiate(Resources.Load("obj/Subworlds/BrokenCrates1"), transform.position + new Vector3(1.5f, 0, 0.2f), Quaternion.identity, 0);
|
|
|
|
|
+ ___networkStuff[___temp] = crates;
|
|
|
|
|
+ ___temp++;
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (num < 4 && Core.shipPorterPlaced && !Core.meteorPorterPlaced)
|
|
|
|
|
+ {
|
|
|
|
|
+ Core.meteorPorterPlaced = true;
|
|
|
|
|
+ if (a == 0 || a == 1 || a == 2 || a == 3 || a == 4 || a == 5)
|
|
|
|
|
+ {
|
|
|
|
|
+ var portal = (GameObject)Network.Instantiate((GameObject)Resources.Load("portal"), transform.position + new Vector3(0.5f, 1.5f - 0.05f, 0.2f), Quaternion.identity, 0);
|
|
|
|
|
+ portal.name = "portal/6/obj";
|
|
|
|
|
+ var iUA = portal.transform.GetChild(0).gameObject;
|
|
|
|
|
+ portal.GetComponent<NetworkView>().RPC("Activate", RPCMode.All, new object[0]);
|
|
|
|
|
+ iUA.GetComponent<NetworkView>().RPC("Set", RPCMode.AllBuffered, new object[] { Core.meteroidPlanet.GetID(), 0, 6 });
|
|
|
|
|
+ ___networkStuff[___temp] = portal;
|
|
|
|
|
+ ___temp++;
|
|
|
|
|
+ var crates = (GameObject)Network.Instantiate(Resources.Load("obj/Subworlds/BrokenMeteor"), transform.position + new Vector3(-1.5f, 0 + 2.03f, 0.2f), Quaternion.identity, 0);
|
|
|
___networkStuff[___temp] = crates;
|
|
___networkStuff[___temp] = crates;
|
|
|
___temp++;
|
|
___temp++;
|
|
|
return false;
|
|
return false;
|