public void findPlayer(System.Type playerType){ player = (Player) GameObject.FindObjectOfType (playerType); } }