// Start is called before the first frame update void Start() { // Assigning Max Health to current health. currentHealth = MaxHealth; healthBar.SetMaxHealth(MaxHealth); // Finding the seeker component on our object seeker6 = GetComponent <Seeker>(); // Finding the rigidbody component on our object rb6 = GetComponent <Rigidbody2D>(); // generating our path at an interval // 0f = amount of time we want to wait // .5f = repeat rate InvokeRepeating("UpdatePath", 0f, .5f); }
void Start() { currentHealth = MaxHealth; //healthbar healthBar.SetMaxHealth(MaxHealth); }