protected void OnNewLife(RegenerationEventArg arg) { if (RaiseNewLife != null) { RaiseNewLife(this, arg); } }
private void HandleNewLife(object sender, RegenerationEventArg arg) { if (this.levelCheckout.activeSelf == false) { return; } this.buttonYes.interactable = true; Image image = this.buttonYes.GetComponent<Image> (); image.color = Color.white; if (this.regeneration.LifeAmount < this.CurrentLeveData.Price) { this.buttonYes.interactable = false; Color col = Color.white; col.a = 0.5f; image.color = col; } }
protected void OnNewLife(RegenerationEventArg arg){ if (RaiseNewLife != null) { RaiseNewLife (this, arg); } }