Hey guys i’m just running through the end animation of my game and have noticed a problem, I need the ShowImage function to run when the animation finishes however it is not working when i add in !, if i remove this it will show when running which proves the function and the statement work just them seems to not like the !, is there a isnotplaying function?
if(Input.GetKeyUp(KeyCode.E) (mirror.gameObject.tag == "Stool"))
{
Body.renderer.enabled = false; // hide body to avoid clipping
MainCamera.camera.enabled = false;
NooseCamera.camera.enabled = true;;
foreach (MouseLook mLook in mLooks) // for each script called mlook
{
// disabels mouselook
mLook.enabled = false;
}
GameObject.FindWithTag("NooseCamera").animation.Play("camera");
if(!GameObject.FindWithTag("NooseCamera").animation.IsPlaying("camera"))
{
Debug.Log("Animation is not playing");
ShowImage();
}