// Use this for initialization void Start() { player = FindObjectOfType <PlayerController> (); camera = FindObjectOfType <CamerController>(); healthManager = FindObjectOfType <HeatltManager>(); }
// Use this for initialization void Start() { Destroy(gameObject, 5.0f); script = GameObject.FindWithTag("Player").GetComponent <CamerController>(); rb = GetComponent <Rigidbody> (); }