Question by 
               Raphael_and_Raph · Mar 07, 2018 at 04:19 PM · 
                setrespawning  
              
 
              I am new to Unity. Why my code wont work? I want on respawn to set.Active(true) to all my Pick Ups that I set.Active(false) while playing.
using UnityEngine; using System.Collections;
public class Respawn : MonoBehaviour { public float fallzone;
 void FixedUpdate () {   
     fallzone = -5f;
     if (transform.position.y < fallzone) {
         transform.position = new Vector3 (0, 0, 0);
         GameObject.Find ("Pick Ups").SetActive (true);
     }
 }
}
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                