void OnTriggerEnter(Collider col) { if (col.gameObject.tag == "Player") { weaponStates.deleteTool = deleteTool; weaponStates.weldTool = weldTool; weaponStates.thrusterTool = thrusterTool; weaponStates.wheelTool = wheelTool; weaponStates.duplicatorTool = duplicatorTool; weaponStates.hingeTool = hingeTool; weaponStates.gravityTool = gravityTool; weaponStates.balloonTool = balloonTool; uiStates.AlwaysShownbool = alwaysShownMenus; uiStates.baublesbool = baubles; thePlayer.allowFlight = allowFlight; thePlayer.allowSlomo = allowSlomo; thePlayer.sitting = sitting; weaponStates.SetTextAliases(); weaponStates.CheckWeapon(); weaponStates.SetWeaponStatus(); uiStates.changeStates(); } }