Exemplo n.º 1
0
    private void InitializeVariable()
    {
        wattIncrease = 30;
        maxWatt      = 100;

        WattBarManager = player.GetComponent <WattBarManager>();
    }
Exemplo n.º 2
0
 // 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>();
 }