void Start()
{
startPosition = mainCharacter.transform.position;
//to subscribe to a Signal, we use += and the name of the function
mainCharacter.OnTrigger += OnDudeTrigger;
mainCharacter.OnCollide += OnDudeCollide;
//add a sane first platform guaranteed
GameObject obj = Instantiate(Resources.Load("Platform")) as GameObject;
totalPlatforms = 1;
AddPlatforms();
}