// Use this for initialization
    void Start()
    {
        player = FindObjectOfType <PlayerController> ();

        camera = FindObjectOfType <CamerController>();

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