Implemented starting blackd dice ability.
This commit is contained in:
parent
fdeab50984
commit
91582767ad
6 changed files with 645 additions and 87 deletions
|
|
@ -25,12 +25,12 @@ public class Die : MonoBehaviour
|
|||
|
||||
private void OnEnable() {
|
||||
GameManager.StateChanged += HandleStateChange;
|
||||
BlackDieAbility.AbilitySelected += HandleOnBlackDieAbilitySelected;
|
||||
StartingBlackDieAbility.AbilitySelected += HandleOnBlackDieAbilitySelected;
|
||||
}
|
||||
|
||||
private void OnDisable() {
|
||||
GameManager.StateChanged -= HandleStateChange;
|
||||
BlackDieAbility.AbilitySelected -= HandleOnBlackDieAbilitySelected;
|
||||
StartingBlackDieAbility.AbilitySelected -= HandleOnBlackDieAbilitySelected;
|
||||
}
|
||||
|
||||
private void Start() {
|
||||
|
|
@ -50,6 +50,7 @@ public class Die : MonoBehaviour
|
|||
|
||||
public void ResetDie() {
|
||||
_selected = false;
|
||||
_blackDieAbilityUsed = false;
|
||||
gameObject.GetComponent<Image>().color = originalColor;
|
||||
gameObject.GetComponent<Outline>().enabled = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue