void OnTriggerEnter(Collider col) { if (col.gameObject.tag == "SpacePad") { pui.SetInteract(0); } if (col.gameObject.tag == "SpacePad2") { pui.SetInteract(1); } if (col.gameObject.tag == "ShipCMD") { pui.SetInteract(2); } if (col.gameObject.tag == "P1T1") { pui.SetInteract(3); } if (col.gameObject.tag == "P1T2") { pui.SetInteract(4); } if (col.gameObject.tag == "P1T3") { pui.SetInteract(5); } if (col.gameObject.tag == "Planet1") { pui.SetInteract(6); } if (col.gameObject.tag == "Planet2") { pui.SetInteract(7); } if (col.gameObject.tag == "P2R") { p2s.counter = 1; p2s.moving = true; } if (col.gameObject.tag == "P2L") { p2s.counter = 2; p2s.moving = true; } if (col.gameObject.tag == "P2U") { p2s.counter = 3; p2s.moving = true; } if (col.gameObject.tag == "P2B") { p2s.counter = 4; p2s.moving = true; } if (col.gameObject.tag == "P2B") { p2s.counter = 4; p2s.moving = true; } if (col.gameObject.tag == "P2Beam") { p2s.BeamSet(); } }
void OnTriggerEnter(Collider col) { if (col.gameObject.tag == "Death") { pui.ShowDeath(); } if (col.gameObject.tag == "SpacePad") { pui.SetInteract(0); } if (col.gameObject.tag == "SpacePad2") { pui.SetInteract(1); } if (col.gameObject.tag == "ShipCMD") { pui.SetInteract(2); } if (col.gameObject.tag == "P1T1") { pui.SetInteract(3); } if (col.gameObject.tag == "P1T2") { pui.SetInteract(4); } if (col.gameObject.tag == "P1T3") { pui.SetInteract(5); } if (col.gameObject.tag == "Planet1") { pui.SetInteract(6); } if (col.gameObject.tag == "Planet2") { pui.SetInteract(7); } if (col.gameObject.tag == "P2R") { p2s.counter = 1; p2s.moving = true; } if (col.gameObject.tag == "P2L") { p2s.counter = 2; p2s.moving = true; } if (col.gameObject.tag == "P2U") { p2s.counter = 3; p2s.moving = true; } if (col.gameObject.tag == "P2B") { p2s.counter = 4; p2s.moving = true; } if (col.gameObject.tag == "P2B") { p2s.counter = 4; p2s.moving = true; } if (col.gameObject.tag == "P2Beam") { p2s.BeamSet(); } if (col.gameObject.tag == "ToCave") { pui.SetInteract(8); } if (col.gameObject.tag == "FromCave") { pui.SetInteract(6); } if (col.gameObject.tag == "ToSea") { pui.SetInteract(7); } if (col.gameObject.tag == "FromSea") { pui.SetInteract(10); } if (col.gameObject.tag == "TrainToXr") { pui.SetInteract(11); } if (col.gameObject.tag == "Train2CAve") { pui.SetInteract(9); } }