Quantcast
Channel: Answers by "schwertfisch"
Viewing all articles
Browse latest Browse all 18

Answer by schwertfisch

$
0
0

I am very new to Javascript but on similar occasions I use something like:

function OnTriggerEnter (col: Collider) 
{
    if (col.gameObject.tag == "wall"){
    Instantiate(soundEffect, transform.position, transform.rotation); //this will make a sound effect on collision
    Destroy(gameObject); //this will destroy the object the script is attached to
}

Viewing all articles
Browse latest Browse all 18

Trending Articles


Long Distance Relationship Tagalog Love Quotes


Re:Mutton Pies (lleechef)


Sapos para colorear


Maganda Quotes – tagalog Quotes – Inggit Quotes


“Tado” Jimenez Quotes Collections Online


Patama tagalog quotes – Move On Quotes


Tropa Quotes


RE: Mutton Pies (frankie241)


EASY COME, EASY GO


FORECLOSURE OF REAL ESTATE MORTGAGE


Ligaw Quotes – Courting Quotes – Sweet Tagalog Quotes


Girasoles para colorear


tagalog love Quotes – Tiwala Quotes


OFW quotes : Pinoy Tagalog Quotes


Patama Quotes – Tanga love tagalog quotes


Mga Patama sa mga Nagmamahal the Best Tagalog love quotes for you


Hugot Lines 2020 Patama : ML Edition


Vimeo 10.7.0 by Vimeo.com, Inc.


Vimeo 10.7.1 by Vimeo.com, Inc.


Pokemon para colorear



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