void Start() { //Change player sprite and display tutorial lineRenderer = GetComponent<LineRenderer> (); lineRenderer.useWorldSpace = true; charStatus = transform.parent.GetComponent<CharStatus> (); charEnergy = GameObject.Find("Char").GetComponent<CharEnergy> (); input = GameObject.Find ("InputManager").GetComponent<InputManager> (); }
void Start() { chargeCounter = 0; charEnergy = transform.parent.GetComponent<CharEnergy> (); status = transform.parent.GetComponent<CharStatus> (); input = GameObject.Find ("InputManager").GetComponent<InputManager> (); }