void OnCollisionEnter2D(Collision2D coll) {
if (coll.gameObject.tag == "Surface") {
air = maxAir; //Is this what you are trying to do?
}
}
↧