Exemple #1
0
 private void Start()
 {
     this.playerLayerMask     = LayerMask.GetMask("Player");
     this.currentHealth       = maxHealth;
     this.container           = FindObjectOfType <Container>();
     this.activateScreenShake = FindObjectOfType <ActivateScreenShake>();
     this.hud = FindObjectOfType <Hud>();
 }
 private void OnEnable()
 {
     activateScreenShake = FindObjectOfType <ActivateScreenShake>();
     activationTimer     = 0;
 }