private void setStartPoint() { start = GameObject.FindGameObjectWithTag("StartPoint"); startPoint = (StartpointScript)start.GetComponent(typeof(StartpointScript)); }