private void Awake() { wc = weapon.GetComponent <PGColor>(); hc = this.gameObject.GetComponent <handleControls>(); pth = this.gameObject.GetComponent <PlayerTextHandler>(); player = this.GetComponent <Rigidbody2D>(); }
private void Start() { pc = this.gameObject.GetComponent <playerController>(); pth = this.gameObject.GetComponent <PlayerTextHandler>(); armor = pth.getArmor(); maxHealth = pth.getHealth(); currHealth = maxHealth; }
private void Awake() { pth = gameObject.GetComponent <PlayerTextHandler>(); }