void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player") || other.CompareTag("Player1")) { other.GetComponent <Move>().SetFire2(); gt.GetAc(2); Destroy(this.gameObject); } }
void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player") || other.CompareTag("Player1")) { fb.getNum(); gt.GetAc(0); Destroy(this.gameObject); } }