예제 #1
0
 protected void OnNewLife(RegenerationEventArg arg)
 {
     if (RaiseNewLife != null)
     {
         RaiseNewLife(this, arg);
     }
 }
예제 #2
0
	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;
		}	
	}
예제 #3
0
	protected void OnNewLife(RegenerationEventArg arg){
		if (RaiseNewLife != null) {
			RaiseNewLife (this, arg);
		}
	}