2020-07-19 21:36:57 -04:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
public class PlayerGUI : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
private PlayerController playerController;
|
|
|
|
|
private InventoryManager playerInventory;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
private TextureDictionary td;
|
2020-07-24 07:53:54 -04:00
|
|
|
|
private GuiCoordinates guiCoordinates;
|
2020-07-19 21:36:57 -04:00
|
|
|
|
public GUISkin thisGUIskin;
|
|
|
|
|
public GameObject videoPlayer;
|
|
|
|
|
private bool schematic1;
|
|
|
|
|
private bool schematic2;
|
|
|
|
|
private bool schematic3;
|
|
|
|
|
private bool schematic4;
|
|
|
|
|
private bool schematic5;
|
|
|
|
|
private bool schematic6;
|
|
|
|
|
private bool schematic7;
|
|
|
|
|
|
2020-09-03 18:26:56 -04:00
|
|
|
|
// Called by unity engine on start up to initialize variables
|
|
|
|
|
public void Start()
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
playerController = GetComponent<PlayerController>();
|
|
|
|
|
playerInventory = GetComponent<InventoryManager>();
|
2020-09-03 03:09:26 -04:00
|
|
|
|
guiCoordinates = GetComponent<GuiCoordinates>();
|
2020-09-03 18:26:56 -04:00
|
|
|
|
td = GetComponent<TextureDictionary>();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
|
2020-09-03 18:26:56 -04:00
|
|
|
|
// Called by unity engine for rendering and handling GUI events
|
|
|
|
|
public void OnGUI()
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
//STYLE
|
|
|
|
|
GUI.skin = thisGUIskin;
|
|
|
|
|
|
|
|
|
|
//ASPECT RATIO
|
|
|
|
|
int ScreenHeight = Screen.height;
|
|
|
|
|
int ScreenWidth = Screen.width;
|
|
|
|
|
if (ScreenHeight < 700)
|
|
|
|
|
{
|
|
|
|
|
GUI.skin.label.fontSize = 10;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (playerController.stateManager.worldLoaded == true && GetComponent<MainMenu>().finishedLoading == true)
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
//BUILD ITEM HUD AT TOP RIGHT OF SCREEN
|
|
|
|
|
if (playerController.displayingBuildItem == true)
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.topRightInfoRect, "\n\nBuild item set to " + playerController.buildType);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.previousBuildItemTextureRect, td.dictionary[playerController.previousBuildType]);
|
|
|
|
|
GUI.DrawTexture(guiCoordinates.buildItemTextureRect, td.dictionary[playerController.buildType]);
|
|
|
|
|
GUI.DrawTexture(guiCoordinates.currentBuildItemTextureRect, td.dictionary[playerController.buildType]);
|
|
|
|
|
GUI.DrawTexture(guiCoordinates.buildItemTextureRect, td.dictionary["Selection Box"]);
|
|
|
|
|
GUI.DrawTexture(guiCoordinates.nextBuildItemTextureRect, td.dictionary[playerController.nextBuildType]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
int buildItemCount = 0;
|
|
|
|
|
foreach (InventorySlot slot in playerInventory.inventory)
|
|
|
|
|
{
|
|
|
|
|
if (slot.typeInSlot.Equals(playerController.buildType))
|
|
|
|
|
{
|
|
|
|
|
buildItemCount += slot.amountInSlot;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.buildItemCountRect, "" + buildItemCount);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//METEOR SHOWER WARNINGS
|
|
|
|
|
if (playerController.meteorShowerWarningActive == true || playerController.timeToDeliverWarningRecieved == true || playerController.pirateAttackWarningActive == true || playerController.destructionMessageActive == true)
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.topLeftInfoRect, "Urgent message received! Check your tablet for more information.");
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//TABLET
|
|
|
|
|
if (playerController.tabletOpen == true)
|
|
|
|
|
{
|
|
|
|
|
int day = GameObject.Find("Rocket").GetComponent<Rocket>().day;
|
|
|
|
|
int hour = (int)GameObject.Find("Rocket").GetComponent<Rocket>().gameTime;
|
|
|
|
|
string hourString = "";
|
|
|
|
|
if (hour < 10)
|
|
|
|
|
{
|
|
|
|
|
hourString = "000" + hour;
|
|
|
|
|
}
|
|
|
|
|
else if (hour >= 10 && hour < 100)
|
|
|
|
|
{
|
|
|
|
|
hourString = "00" + hour;
|
|
|
|
|
}
|
|
|
|
|
else if (hour >= 100 && hour < 1000)
|
|
|
|
|
{
|
|
|
|
|
hourString = "0" + hour;
|
|
|
|
|
}
|
|
|
|
|
else if (hour >= 1000)
|
|
|
|
|
{
|
|
|
|
|
hourString = "" + hour;
|
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.tabletBackgroundRect, td.dictionary["Tablet"]);
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.tabletMessageRect, playerController.currentTabletMessage);
|
|
|
|
|
GUI.Label(guiCoordinates.tabletTimeRect, "\nDay: " + day + " Hour: " + hourString + ", Income: $" + playerController.money.ToString("N0"));
|
|
|
|
|
if (GUI.Button(guiCoordinates.tabletButtonRect, "CLOSE"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
playerController.tabletOpen = false;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//OPTIONS/EXIT MENU
|
|
|
|
|
if (playerController.escapeMenuOpen == true)
|
|
|
|
|
{
|
|
|
|
|
if (playerController.helpMenuOpen == false && playerController.optionsGUIopen == false && cGUI.showingInputGUI == false && playerController.exiting == false)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.escapeMenuRect, td.dictionary["Menu Background"]);
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.escapeButton1Rect, "Resume"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
gameObject.GetComponent<MSCameraController>().enabled = true;
|
|
|
|
|
playerController.escapeMenuOpen = false;
|
|
|
|
|
playerController.optionsGUIopen = false;
|
|
|
|
|
playerController.helpMenuOpen = false;
|
|
|
|
|
playerController.videoMenuOpen = false;
|
|
|
|
|
playerController.schematicMenuOpen = false;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.escapeButton2Rect, "Options"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
playerController.optionsGUIopen = true;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.escapeButton3Rect, "Help"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
playerController.helpMenuOpen = true;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.escapeButton4Rect, "Exit"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
PlayerPrefs.SetFloat("xSensitivity", GetComponent<MSCameraController>().CameraSettings.firstPerson.sensibilityX);
|
|
|
|
|
PlayerPrefs.SetFloat("ySensitivity", GetComponent<MSCameraController>().CameraSettings.firstPerson.sensibilityY);
|
|
|
|
|
PlayerPrefsX.SetBool("mouseInverted", GetComponent<MSCameraController>().CameraSettings.firstPerson.invertYInput);
|
|
|
|
|
PlayerPrefs.SetFloat("FOV", playerController.mCam.fieldOfView);
|
|
|
|
|
PlayerPrefs.SetFloat("DrawDistance", playerController.mCam.farClipPlane);
|
|
|
|
|
PlayerPrefsX.SetVector3(playerController.stateManager.WorldName + "playerPosition", transform.position);
|
|
|
|
|
PlayerPrefsX.SetQuaternion(playerController.stateManager.WorldName + "playerRotation", transform.rotation);
|
|
|
|
|
PlayerPrefs.SetInt(playerController.stateManager.WorldName + "money", playerController.money);
|
|
|
|
|
PlayerPrefsX.SetBool(playerController.stateManager.WorldName + "oldWorld", true);
|
|
|
|
|
PlayerPrefs.SetFloat("volume", GetComponent<MSCameraController>().cameras[0].volume);
|
|
|
|
|
PlayerPrefs.Save();
|
|
|
|
|
playerController.exiting = true;
|
|
|
|
|
playerController.requestedExit = true;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (playerController.exiting == true)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.savingBackgroundRect, td.dictionary["Interface Background"]);
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.messageRect, "\n\n\n\n\nSaving world...");
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//HELP MENU
|
|
|
|
|
if (playerController.helpMenuOpen == true)
|
|
|
|
|
{
|
|
|
|
|
if (playerController.videoMenuOpen == false && playerController.schematicMenuOpen == false)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.escapeMenuRect, td.dictionary["Menu Background"]);
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.escapeButton1Rect, "Videos"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
playerController.videoMenuOpen = true;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.escapeButton2Rect, "Schematics"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
playerController.schematicMenuOpen = true;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.escapeButton4Rect, "BACK"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
playerController.helpMenuOpen = false;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (playerController.videoMenuOpen == true)
|
|
|
|
|
{
|
|
|
|
|
if (playerController.mCam.GetComponent<UnityEngine.Video.VideoPlayer>().isPlaying == false)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.videoMenuBackgroundRect, td.dictionary["Menu Background"]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
if (playerController.mCam.GetComponent<UnityEngine.Video.VideoPlayer>().isPlaying == false)
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton1Rect, "Intro"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
videoPlayer.GetComponent<VP>().PlayVideo("Guide.webm", false, 0.5f);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton2Rect, "Dark Matter"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
videoPlayer.GetComponent<VP>().PlayVideo("DarkMatter.webm", false, 0.5f);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton3Rect, "Universal Extractor"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
videoPlayer.GetComponent<VP>().PlayVideo("Extractor.webm", false, 0.5f);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton4Rect, "Heat Exchanger"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
videoPlayer.GetComponent<VP>().PlayVideo("HeatExchanger.webm", false, 0.5f);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton5Rect, "Alloy Smelter"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
videoPlayer.GetComponent<VP>().PlayVideo("AlloySmelter.webm", false, 0.5f);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton6Rect, "Hazards"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
videoPlayer.GetComponent<VP>().PlayVideo("Hazards.webm", false, 0.5f);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton7Rect, "Rail Carts"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
videoPlayer.GetComponent<VP>().PlayVideo("RailCarts.webm", false, 0.5f);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton8Rect, "Storage Computers"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
videoPlayer.GetComponent<VP>().PlayVideo("StorageComputers.webm", false, 0.5f);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton9Rect, "Nuclear Reactors"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
videoPlayer.GetComponent<VP>().PlayVideo("NuclearReactors.webm", false, 0.5f);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton10Rect, "BACK"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
playerController.videoMenuOpen = false;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (playerController.mCam.GetComponent<UnityEngine.Video.VideoPlayer>().isPlaying == false)
|
|
|
|
|
{
|
|
|
|
|
Cursor.visible = true;
|
|
|
|
|
Cursor.lockState = CursorLockMode.None;
|
|
|
|
|
videoPlayer.GetComponent<VP>().StopVideo();
|
|
|
|
|
}
|
|
|
|
|
if (playerController.mCam.GetComponent<UnityEngine.Video.VideoPlayer>().isPlaying == true && Input.anyKey)
|
|
|
|
|
{
|
|
|
|
|
Cursor.visible = true;
|
|
|
|
|
Cursor.lockState = CursorLockMode.None;
|
|
|
|
|
videoPlayer.GetComponent<VP>().StopVideo();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (playerController.schematicMenuOpen == true)
|
|
|
|
|
{
|
|
|
|
|
if (schematic1 == false || schematic2 == false || schematic3 == false || schematic4 == false || schematic5 == false || schematic6 == false || schematic7 == false)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.schematicsMenuBackgroundRect, td.dictionary["Menu Background"]);
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton1Rect, "Dark Matter"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
if (schematic1 == false)
|
|
|
|
|
{
|
|
|
|
|
schematic1 = true;
|
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton2Rect, "Plates"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
if (schematic2 == false)
|
|
|
|
|
{
|
|
|
|
|
schematic2 = true;
|
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton3Rect, "Wires"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
if (schematic3 == false)
|
|
|
|
|
{
|
|
|
|
|
schematic3 = true;
|
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton4Rect, "Gears"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
if (schematic4 == false)
|
|
|
|
|
{
|
|
|
|
|
schematic4 = true;
|
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
|
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton5Rect, "Steel"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
if (schematic5 == false)
|
|
|
|
|
{
|
|
|
|
|
schematic5 = true;
|
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
|
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton6Rect, "Bronze"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
if (schematic6 == false)
|
|
|
|
|
{
|
|
|
|
|
schematic6 = true;
|
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
|
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton7Rect, "Heat Exchangers"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
if (schematic7 == false)
|
|
|
|
|
{
|
|
|
|
|
schematic7 = true;
|
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton8Rect, "BACK"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
playerController.schematicMenuOpen = false;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (schematic1 == true)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(new Rect(0, 0, ScreenWidth, ScreenHeight), td.dictionary["Dark Matter Schematic"]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
if (schematic2 == true)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(new Rect(0, 0, ScreenWidth, ScreenHeight), td.dictionary["Plate Schematic"]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
if (schematic3 == true)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(new Rect(0, 0, ScreenWidth, ScreenHeight), td.dictionary["Wire Schematic"]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
if (schematic4 == true)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(new Rect(0, 0, ScreenWidth, ScreenHeight), td.dictionary["Gear Schematic"]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
if (schematic5 == true)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(new Rect(0, 0, ScreenWidth, ScreenHeight), td.dictionary["Steel Schematic"]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
if (schematic6 == true)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(new Rect(0, 0, ScreenWidth, ScreenHeight), td.dictionary["Bronze Schematic"]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
if (schematic7 == true)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(new Rect(0, 0, ScreenWidth, ScreenHeight), td.dictionary["Heat Exchanger Schematic"]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
if (schematic1 == true || schematic2 == true || schematic3 == true || schematic4 == true || schematic5 == true || schematic6 == true || schematic7 == true)
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.schematicCloseRect,"CLOSE") || Input.anyKey)
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
schematic1 = false;
|
|
|
|
|
schematic2 = false;
|
|
|
|
|
schematic3 = false;
|
|
|
|
|
schematic4 = false;
|
|
|
|
|
schematic5 = false;
|
|
|
|
|
schematic6 = false;
|
|
|
|
|
schematic7 = false;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
schematic1 = false;
|
|
|
|
|
schematic2 = false;
|
|
|
|
|
schematic3 = false;
|
|
|
|
|
schematic4 = false;
|
|
|
|
|
schematic5 = false;
|
|
|
|
|
schematic6 = false;
|
|
|
|
|
schematic7 = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//OPTIONS MENU
|
|
|
|
|
if (playerController.optionsGUIopen == true && cGUI.showingInputGUI == false)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.optionsMenuBackgroundRect, td.dictionary["Menu Background"]);
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton1Rect, "Bindings"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
cGUI.ToggleGUI();
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-24 07:53:54 -04:00
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
string invertYInput = "";
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GetComponent<MSCameraController>().CameraSettings.firstPerson.invertYInput == true)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
invertYInput = "ON";
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
else
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
invertYInput = "OFF";
|
2020-07-24 07:53:54 -04:00
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton2Rect, "Invert Y Axis: " + invertYInput))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
if (GetComponent<MSCameraController>().CameraSettings.firstPerson.invertYInput)
|
|
|
|
|
{
|
|
|
|
|
GetComponent<MSCameraController>().CameraSettings.firstPerson.invertYInput = false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
GetComponent<MSCameraController>().CameraSettings.firstPerson.invertYInput = true;
|
|
|
|
|
}
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.sliderLabel1Rect, "X sensitivity");
|
|
|
|
|
GUI.Label(guiCoordinates.sliderLabel2Rect, "Y sensitivity");
|
|
|
|
|
GUI.Label(guiCoordinates.sliderLabel3Rect, "Volume");
|
|
|
|
|
GUI.Label(guiCoordinates.sliderLabel4Rect, "FOV");
|
|
|
|
|
GUI.Label(guiCoordinates.sliderLabel5Rect, "Draw Distance");
|
|
|
|
|
GetComponent<MSCameraController>().CameraSettings.firstPerson.sensibilityX = GUI.HorizontalSlider(guiCoordinates.optionsButton4Rect, GetComponent<MSCameraController>().CameraSettings.firstPerson.sensibilityX, 0, 10);
|
|
|
|
|
GetComponent<MSCameraController>().CameraSettings.firstPerson.sensibilityY = GUI.HorizontalSlider(guiCoordinates.optionsButton5Rect, GetComponent<MSCameraController>().CameraSettings.firstPerson.sensibilityY, 0, 10);
|
|
|
|
|
AudioListener.volume = GUI.HorizontalSlider(guiCoordinates.optionsButton6Rect, AudioListener.volume, 0, 5);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
GetComponent<MSCameraController>().cameras[0].volume = AudioListener.volume;
|
2020-07-24 07:53:54 -04:00
|
|
|
|
playerController.mCam.fieldOfView = GUI.HorizontalSlider(guiCoordinates.optionsButton7Rect, playerController.mCam.fieldOfView, 60, 80);
|
|
|
|
|
playerController.mCam.farClipPlane = GUI.HorizontalSlider(guiCoordinates.optionsButton8Rect, playerController.mCam.farClipPlane, 1000, 100000);
|
|
|
|
|
string blockPhysicsDisplay = "";
|
|
|
|
|
if (GameObject.Find("GameManager").GetComponent<GameManager>().blockPhysics == true)
|
|
|
|
|
{
|
|
|
|
|
blockPhysicsDisplay = "ON";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
blockPhysicsDisplay = "OFF";
|
|
|
|
|
}
|
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton9Rect, "Block Physics: "+ blockPhysicsDisplay))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
if (GameObject.Find("GameManager").GetComponent<GameManager>().blockPhysics == false)
|
|
|
|
|
{
|
|
|
|
|
GameObject.Find("GameManager").GetComponent<GameManager>().blockPhysics = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
GameObject.Find("GameManager").GetComponent<GameManager>().blockPhysics = false;
|
|
|
|
|
}
|
|
|
|
|
PlayerPrefsX.SetBool(GameObject.Find("GameManager").GetComponent<StateManager>().WorldName + "blockPhysics", GameObject.Find("GameManager").GetComponent<GameManager>().blockPhysics);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-24 07:53:54 -04:00
|
|
|
|
}
|
|
|
|
|
string hazardsEnabledDisplay = "";
|
|
|
|
|
if (GameObject.Find("GameManager").GetComponent<GameManager>().hazardsEnabled == true)
|
|
|
|
|
{
|
|
|
|
|
hazardsEnabledDisplay = "ON";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
hazardsEnabledDisplay = "OFF";
|
|
|
|
|
}
|
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton10Rect, "Hazards: " + hazardsEnabledDisplay))
|
|
|
|
|
{
|
|
|
|
|
if (GameObject.Find("GameManager").GetComponent<GameManager>().hazardsEnabled == false)
|
|
|
|
|
{
|
|
|
|
|
GameObject.Find("GameManager").GetComponent<GameManager>().hazardsEnabled = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
GameObject.Find("GameManager").GetComponent<GameManager>().hazardsEnabled = false;
|
|
|
|
|
}
|
|
|
|
|
PlayerPrefsX.SetBool(GameObject.Find("GameManager").GetComponent<StateManager>().WorldName + "hazardsEnabled", GameObject.Find("GameManager").GetComponent<GameManager>().hazardsEnabled);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton11Rect, "BACK"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
|
|
|
|
playerController.optionsGUIopen = false;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (playerController.cannotCollect == true)
|
|
|
|
|
{
|
|
|
|
|
if (playerController.cannotCollectTimer < 3)
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.messageRect, "\n\nNo space in inventory.");
|
2020-07-19 21:36:57 -04:00
|
|
|
|
playerController.cannotCollectTimer += 1 * Time.deltaTime;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
playerController.cannotCollect = false;
|
|
|
|
|
playerController.cannotCollectTimer = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (playerController.invalidAugerPlacement == true)
|
|
|
|
|
{
|
|
|
|
|
if (playerController.invalidAugerPlacementTimer < 3)
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.messageRect, "\n\n\n\nInvalid location.");
|
2020-07-19 21:36:57 -04:00
|
|
|
|
playerController.invalidAugerPlacementTimer += 1 * Time.deltaTime;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
playerController.invalidAugerPlacement = false;
|
|
|
|
|
playerController.invalidAugerPlacementTimer = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (playerController.invalidRailCartPlacement == true)
|
|
|
|
|
{
|
|
|
|
|
if (playerController.invalidRailCartPlacementTimer < 3)
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.messageRect, "\n\n\n\nInvalid location.");
|
2020-07-19 21:36:57 -04:00
|
|
|
|
playerController.invalidRailCartPlacementTimer += 1 * Time.deltaTime;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
playerController.invalidRailCartPlacement = false;
|
|
|
|
|
playerController.invalidRailCartPlacementTimer = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (playerController.stoppingBuildCoRoutine == true || playerController.requestedBuildingStop == true)
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.longHighMessageRect, "Stopping Build System...");
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (playerController.blockLimitMessage == true)
|
|
|
|
|
{
|
|
|
|
|
if (playerController.blockLimitMessageTimer < 3)
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.longHighMessageRect, "\nWorld limit exceeded!");
|
2020-07-19 21:36:57 -04:00
|
|
|
|
playerController.blockLimitMessageTimer += 1 * Time.deltaTime;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
playerController.blockLimitMessage = false;
|
|
|
|
|
playerController.blockLimitMessageTimer = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//BUILDING INSTRUCTIONS
|
|
|
|
|
if (playerController.building == true && playerController.tabletOpen == false)
|
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.buildInfoRectBG, td.dictionary["Interface Background"]);
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.buildInfoRect, "Right click to place block.\nPress F to collect.\nPress R to rotate.\nPress Q to stop building.");
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.currentBuildItemTextureRect, td.dictionary[playerController.buildType]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
int buildItemCount = 0;
|
|
|
|
|
foreach (InventorySlot slot in playerInventory.inventory)
|
|
|
|
|
{
|
|
|
|
|
if (slot.typeInSlot.Equals(playerController.buildType))
|
|
|
|
|
{
|
|
|
|
|
buildItemCount += slot.amountInSlot;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (playerController.buildType == "Brick" || playerController.buildType == "Glass Block" || playerController.buildType == "Iron Block" || playerController.buildType == "Iron Ramp" || playerController.buildType == "Steel Block" || playerController.buildType == "Steel Ramp")
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.buildItemCountRect, "" + buildItemCount + "\nx" + playerController.buildMultiplier);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.buildItemCountRect, "" + buildItemCount);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-24 07:53:54 -04:00
|
|
|
|
//PAINT COLOR SELECTION WINDOW
|
|
|
|
|
if (playerController.paintGunActive == true)
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (playerController.paintColorSelected == false)
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.optionsMenuBackgroundRect, td.dictionary["Interface Background"]);
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.optionsButton1Rect, " Paint Gun");
|
|
|
|
|
GUI.Label(guiCoordinates.optionsButton2Rect, " Select Color");
|
|
|
|
|
GUI.Label(guiCoordinates.sliderLabel1Rect, "Red");
|
|
|
|
|
GUI.Label(guiCoordinates.sliderLabel2Rect, "Green");
|
|
|
|
|
GUI.Label(guiCoordinates.sliderLabel3Rect, "Blue");
|
|
|
|
|
playerController.paintRed = GUI.HorizontalSlider(guiCoordinates.optionsButton4Rect, playerController.paintRed, 0, 1);
|
|
|
|
|
playerController.paintGreen = GUI.HorizontalSlider(guiCoordinates.optionsButton5Rect, playerController.paintGreen, 0, 1);
|
|
|
|
|
playerController.paintBlue = GUI.HorizontalSlider(guiCoordinates.optionsButton6Rect, playerController.paintBlue, 0, 1);
|
|
|
|
|
GUI.color = new Color(playerController.paintRed, playerController.paintGreen, playerController.paintBlue);
|
|
|
|
|
playerController.paintGunTank.GetComponent<Renderer>().material.color = new Color(playerController.paintRed, playerController.paintGreen, playerController.paintBlue);
|
|
|
|
|
playerController.adjustedPaintGunTank.GetComponent<Renderer>().material.color = new Color(playerController.paintRed, playerController.paintGreen, playerController.paintBlue);
|
|
|
|
|
playerController.adjustedPaintGunTank2.GetComponent<Renderer>().material.color = new Color(playerController.paintRed, playerController.paintGreen, playerController.paintBlue);
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.optionsButton3Rect, td.dictionary["Iron Block"]);
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.color = Color.white;
|
|
|
|
|
if (GUI.Button(guiCoordinates.optionsButton8Rect, "DONE"))
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
playerController.paintColorSelected = true;
|
|
|
|
|
Cursor.visible = false;
|
|
|
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
|
|
|
gameObject.GetComponent<MSCameraController>().enabled = true;
|
2020-09-03 18:26:56 -04:00
|
|
|
|
playerController.PlayButtonSound();
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
else if (playerController.lookingAtCombinedMesh == true)
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.highMessageRect, "Left click to paint.\nRight click to stop.");
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
else
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
GUI.Label(guiCoordinates.longHighMessageRect, "Only structures can be painted...");
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
2020-07-24 07:53:54 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//CROSSHAIR
|
2020-09-05 18:39:40 -04:00
|
|
|
|
if (!playerController.inventoryOpen && !playerController.machineGUIopen && !playerController.marketGUIopen)
|
2020-07-24 07:53:54 -04:00
|
|
|
|
{
|
|
|
|
|
if (!playerController.escapeMenuOpen && !playerController.tabletOpen && !playerController.paintGunActive)
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (!playerController.objectInSight || playerController.building)
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
2020-07-24 07:53:54 -04:00
|
|
|
|
if (playerController.crosshairEnabled)
|
2020-07-19 21:36:57 -04:00
|
|
|
|
{
|
2020-09-03 18:26:56 -04:00
|
|
|
|
GUI.DrawTexture(guiCoordinates.crosshairRect, td.dictionary["Crosshair"]);
|
2020-07-19 21:36:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|