// Start is called before the first frame update private void Start() { if (_IsTesting) //If you are using a computer, lock the mouse to the middle of the Game window { Cursor.lockState = CursorLockMode.Locked; } if (PlayerInfoScript.instance != null) { PlayerInfoScript info = PlayerInfoScript.instance; _health = info.GetPowerValue("Health"); _damage = info.GetPowerValue("Damage"); _armour = info.GetPowerValue("Armour"); _rapidDelay = info.GetPowerValue("Rapid"); } else { if (!_IsTesting) { Debug.LogError("No PlayerInfoScript found"); } //Default values _health = 100.0f; _damage = 25.0f; _armour = 1.0f; _rapidDelay = 0.15f; } _startingHealth = _health; }