I have a error when i have some code: here is it:
using UnityEngine;
using System.Collections;
public class CollisionPlayer : MonoBehaviour {
void Start(){
IfLoose ifloose = GetComponent<IfLoose> ();
if (Input.GetKeyDown("space"))
IfLoose.StartLooseGame ();
}
}
I am trying to access a public void from another script but it is not working? Any ideas?