// Use this for initialization
 void Start()
 {
     x = this.transform.position.x;
     Invoke("moverDireita", 3);
     //camera = GameObject.Find("MainCamera").GetComponent<Camera>();
     pLayerController = GameObject.Find("Player").GetComponent <PLayerController>();
 }
Esempio n. 2
0
 void Start()
 {
     player = FindObjectOfType <PLayerController>();
 }
    // public GameObject obj;

    void Start()
    {
        //criou = false;
        camera           = GameObject.FindGameObjectWithTag("MainCamera");
        pLayerController = GameObject.Find("Player").GetComponent <PLayerController>();
    }
    // Use this for initialization
    void Start()
    {
        player = FindObjectOfType <PLayerController> ();

        healthManager = FindObjectOfType <HealthManager> ();
    }
Esempio n. 5
0
 void Awake()
 {
     playerController = GetComponent <PLayerController>();
 }