// 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>(); }
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> (); }
void Awake() { playerController = GetComponent <PLayerController>(); }