First let me just say: I'm also 14, high five! And also, that should let you down at all. Now, what I think you should do is make a variable of the number of fishes (visjel? Yay I'm learning Dutch ) then, make a script for your fishes in which it finds the player with the script, and finds the griot itself but specifically the one attached to the player (GameObject.Find("PlayerObjectNameWithQuotes").GetComponent()) so for example, assuming the object with the player script is called PlayerObject and the fishies are called Visjel, and that the player script is called PlayerScript:
public PlayerScript Script;
void Start () {
PlayerScript=GameObject.Find("PlayerObject").GetComponent();
}
Then put an ontriggerenter void and inside put " Script.AmountOfFishes+=1; " and I the next line put " Destroy(gameObject); "
↧