private void OnTriggerEnter2D(Collider2D collision) { MasterHouse house = collision.GetComponent <MasterHouse>(); if (house) { house.TakeDamage(10000); } }
private void OnTriggerEnter2D(Collider2D collision) { MasterHouse house = collision.GetComponent <MasterHouse>(); if (house) { house.AddScore(5); } }
private void Start() { instance = this; HeightSlider.maxValue = 0; HeightSlider.minValue = -3.2f; SprintSpell.Event = (SpellMethod)_Stone.Loader.BaloonEvents[SprintSpell.MethodName].CreateDelegate(typeof(SpellMethod)); }