private void Awake()
 {
     wc     = weapon.GetComponent <PGColor>();
     hc     = this.gameObject.GetComponent <handleControls>();
     pth    = this.gameObject.GetComponent <PlayerTextHandler>();
     player = this.GetComponent <Rigidbody2D>();
 }
Пример #2
0
 private void Start()
 {
     pc         = this.gameObject.GetComponent <playerController>();
     pth        = this.gameObject.GetComponent <PlayerTextHandler>();
     armor      = pth.getArmor();
     maxHealth  = pth.getHealth();
     currHealth = maxHealth;
 }
Пример #3
0
 private void Awake()
 {
     pth = gameObject.GetComponent <PlayerTextHandler>();
 }