// Use this for initialization void Start() { //DontDestroyOnLoad (this); /*if(playerInstance == null){ * playerInstance = this; * } * else if(!dead){ * DestroyObject (gameObject); * } */ //spawnPos.SetSpawn(new Vector3 (-41, 52, 0)); transform.position = spawnPos.getSpawn(); rb2d = gameObject.GetComponent <Rigidbody2D>(); anim = gameObject.GetComponent <Animator>(); DeathUI.SetActive(false); audioPlayer = GetComponent <AudioSource> (); gravityStore = rb2d.gravityScale; //monkey = gameObject.Find("Monkey"); }