I have an object called Spawn and I want an object (a checkpoint) to call the respawn function that Spawn has. However, with the following code: `Spawn.SendMessage("respawn", Transform.position+Vector3.up);` I get the error
Unknown Identifier: Spawn
I also tried using `FindObjectsOfType(Spawn).SendMessage("respawn",Transform.position+Vector3.up)` and got the same problem but in a different place. Finally I tried `FindObjectsOfType("Spawn").SendMessage("respawn",Transform.position+Vector3.up)` but got
The best overload for the method 'UnityEngine.Object.FindObjectsOfType(System.Type)' is not compatible with the argument list '(String)'.