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


Vimeo 10.7.0 by Vimeo.com, Inc.


HOY PANGIT, MAGBAYAD KA!


Girasoles para colorear


Presence Quotes – Positive Quotes


“Tado” Jimenez Quotes Collections Online


Papa Jack Tagalog Love Quotes and Advice for you


Top 10 Best Tagalog Friendship Quotes and Sayings | mrbolero


“Mali man na ikaw ay ibigin ko, akoy iibig padin sayo”


RE: Mutton Pies (frankie241)


EASY COME, EASY GO


FORECLOSURE OF REAL ESTATE MORTGAGE


Pokemon para colorear


Sapos para colorear


tagalog love Quotes – Tiwala Quotes


Long Distance Relationship Tagalog Love Quotes


5 Tagalog Relationship Rules


“BAHAY KUBO HUGOT”


Re:Mutton Pies (lleechef)


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Vimeo 10.7.1 by Vimeo.com, Inc.



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