void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Player")) { Instantiate(particles, transform.position, transform.rotation); Destroy(this.gameObject); PlayerAttributeController.addLeaf(); LeafTextController.updateLeavesText(); } }
private void Update() { if (playerBreath < 0) { playerBreath = 100; breathSlider.value = 0; PlayerAttributeController.removeHealth(); } else if (playerBreath == 100) { breathSlider.gameObject.SetActive(false); } }
public PlayerAttributeControllerTest() { _seed = Guid.NewGuid().ToString(); _controller = MockController.CreateController <PlayerAttributeController>(_seed, "user"); }