void Start() { rb2d = GetComponent <Rigidbody2D>(); dashTime = startDashTime; dashCooldown = new CoolDownHability(cooldownTime); boosterSpawner.SpeedBoosterTouched += SpeedBoosterTouched; }
private void Start() { dashTime = startDashTime; rb = GetComponent <Rigidbody>(); dashCooldown = new CoolDownHability(cooldownTime); }