// Start is called before the first frame update void Start() { _controller = GetComponent <CharacterController>(); this.playerHealth = GetComponent <HealthControl>(); this.velocity = new Vector3(0, 0, 0); playerHealth.setMaxHealth(100); }
// Start is called before the first frame update void Start() { health.setMaxHealth(stats.maxHealth); if (rootTransform == null) { rootTransform = transform; } }