Quantcast
Channel: Answers for "Adding "Air" on a collision"
Viewing all articles
Browse latest Browse all 4

Answer by mwbranna

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

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>