Separated maps.
This commit is contained in:
parent
eed98f0492
commit
de66101178
@ -18,47 +18,46 @@ namespace ValensHasThePower
|
||||
public class PowerOn
|
||||
{
|
||||
public static void Start()
|
||||
{
|
||||
PowerOn.Interchange();
|
||||
}
|
||||
|
||||
public static void Interchange()
|
||||
{
|
||||
var power = GameObject.FindObjectsOfType<Switch>().ToList();
|
||||
var exfil = GameObject.FindObjectsOfType<ExfiltrationPoint>().ToList();
|
||||
|
||||
foreach (var Switch in power) // Turn the Power Station switch to On.
|
||||
{
|
||||
//Interchange - Power to Mall
|
||||
if (Switch.Id == "Shopping_Mall_DesignStuff_00055"&&Switch.name == "reserve_electric_switcher_lever")
|
||||
if (Switch.Id == "Shopping_Mall_DesignStuff_00055" && Switch.name == "reserve_electric_switcher_lever")
|
||||
{
|
||||
Switch.DoorState = EDoorState.Open;
|
||||
Debug.LogError(Switch.name);
|
||||
}
|
||||
|
||||
//Activation of Toilet Key Card Reader in Burger Stop
|
||||
if (Switch.name == "Node_Keycard_Saferoom")
|
||||
{
|
||||
Switch.DoorState = EDoorState.Open;
|
||||
}
|
||||
|
||||
//Activation of OBJ21 Container
|
||||
if (Switch.Id == "Shopping_Mall_DesignStuff_00061"&&Switch.Id == "reserve_electric_switcher_lever")
|
||||
if (Switch.Id == "Shopping_Mall_DesignStuff_00061" && Switch.Id == "reserve_electric_switcher_lever")
|
||||
{
|
||||
Switch.DoorState = EDoorState.Open;
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void Customs()
|
||||
{
|
||||
var power = GameObject.FindObjectsOfType<Switch>().ToList();
|
||||
|
||||
//Customs - Power to ZB-013 Extract.
|
||||
if (Switch.Id == "custom_DesignStuff_00034"&&Switch.name == "reserve_electric_switcher_lever")
|
||||
foreach (var Switch in power)
|
||||
{
|
||||
if (Switch.Id == "custom_DesignStuff_00034" && Switch.name == "reserve_electric_switcher_lever")
|
||||
{
|
||||
Switch.DoorState = EDoorState.Open;
|
||||
}
|
||||
|
||||
//Reserve
|
||||
if (Switch.Id == "autoId_00000_D2_LEVER" && Switch.name == "reserve_electric_switcher_lever")
|
||||
{
|
||||
Switch.DoorState = EDoorState.Shut;
|
||||
Switch.DoorState = EDoorState.Interacting;
|
||||
Switch.DoorState = EDoorState.Open;
|
||||
}
|
||||
|
||||
if (Switch.Id == "00453" && Switch.name == "Node_GatesButton")
|
||||
{
|
||||
Switch.DoorState = EDoorState.Shut;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user