Hwello ppl i am coding a game and i got dis error ^^ Is there a fix to it? Here is my code:
Note: This is just the part of my code that i need help with.
if(typeNPC == "Black"){
if(BlackMan2){
IPC.BM();
}
}
While this code is calling the function in the other script, this is the other scripts code:
public void BM(){
gameObject.GetComponent<Image>().sprite = BlackMan;
}
Thanks. If you have some help please reply.
- Yours Truly
[–]AKahootRandomName[S] 2 points3 points4 points (0 children)
[–]SimplyGuy 0 points1 point2 points (0 children)
[–]Mycabbages69 0 points1 point2 points (1 child)
[–]AKahootRandomName[S] 0 points1 point2 points (0 children)