private void InitializeVariable() { wattIncrease = 30; maxWatt = 100; WattBarManager = player.GetComponent <WattBarManager>(); }
// Use this for initialization void Start() { m_Rigidbody = GetComponent <Rigidbody2D>(); lr = transform.parent.GetComponent <LineRenderer>(); color1 = Color.white; color2 = Color.blue; color3 = Color.red; wattBarManager = GetComponent <WattBarManager>(); _audioSource = GetComponent <AudioSource>(); }