- Home /
INTERNAL COMPILER ERROR
function OnCollisionEnter(collideswithtable:Collision)
{
if(collideswithtable.collider.tag=="table")
{
if(isSoundOn)
{
audio.clip=P2HitTable;
Debug.Log("playing sound");
audio.Play();
// yield WaitForSeconds(2);
audio.Stop();
isSoundOn=false;
}
}
}
This is the code which shows up a message on uncommenting the yield line in Oncollision enter.I don't think there is something wrong in this code . I d like to state that this only shows up in my network integrated scripts ,i'm using appwarp sdk and the sdk is perfect that's what i presume .my scripts are made up in javascript and the sdk is in csharp ,i'm referencing my javascipts in sdk csharp files. This is my first question on this site and i hope there will be people to help. thank you .
try posting the exact (& complete) error message. your subject is too vague
Internal compiler error: $OnCollisionEnter$4 (CS0584) (Assembly-CSharp) Type object' does not contain a definition for
x' and no extension method x' of type
object' could be found (are you missing a using directive or an assembly reference?) (CS1061) (Assembly-CSharp)
Your answer
Follow this Question
Related Questions
MMO Timer? 1 Answer
Yield to wait for delegate call 1 Answer
Question about WaitForFixedUpdate() 1 Answer
problem with Yield WaitForSeconds 1 Answer