void Awake()
 {
     crosshair = moveCrosshair.Instance();
     gameManager = GameManagerScript.Instance();
     debounceCount = 0;
     Assert.IsTrue(crosshair && gameManager);
 }
 public static moveCrosshair Instance()
 {
     if (instance != null)
         return instance;
     lock (instance_lock)
     {
         instance = (moveCrosshair)FindObjectOfType(typeof(moveCrosshair));
         if (FindObjectsOfType(typeof(moveCrosshair)).Length > 1)
         {
             Debug.LogError("There can only be one instance!");
             return instance;
         }
         if (instance != null)
             return instance;
         Debug.LogError("Could not find a instance!");
         return null;
     }
 }
    void Awake()
    {
        menuManager = MenuManager.Instance();
        gameManager = GameManagerScript.Instance();
        crosshair = moveCrosshair.Instance();
        Canvas childCanvas = GetComponentInChildren<Canvas>();
        loadingMenuReticule = HelperMethods.FindChildWithName(childCanvas.gameObject, "RotatingReticule").GetComponent<RotateReticule>();
        healthReticule = HelperMethods.FindChildWithName(childCanvas.gameObject, "HealthReticule").GetComponent<RotateReticule>();
        armorReticule = HelperMethods.FindChildWithName(childCanvas.gameObject, "ArmorReticule").GetComponent<RotateReticule>();

        Assert.IsTrue(menuManager && gameManager && crosshair);
        Assert.IsTrue(healthReticule && armorReticule && loadingMenuReticule);

        loadingMenuReticule.SetTimer(timeToLoadMenu);
        currTime = timeToLoadMenu;
        armor = maxArmor;
        hitPoints = maxHitPoints;
        armorRegen = maxArmorRegen;

    }