// Use this for initialization void Start() { scoreText = GameObject.FindWithTag("Score"); devilText = GameObject.FindWithTag("DevilMessage"); devilText.GetComponent <Text>().transform.position = new Vector2(0, 1000); canvas = GameObject.FindWithTag("Canvas"); dollah = player.GetComponent <Dollah>(); }
void Start() { mainCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>(); dollah = GetComponent <Dollah>(); // player = this.gameObject; recallTimer = 180.0f; audio = GameObject.Find("Music").GetComponent <AudioSource>(); cam = mainCamera; }
// Use this for initialization void Start() { //currentHealth = maxHealth; //debug, runs decrease health every second //InvokeRepeating ("DecreaseHealth", 1f, 1f); audio = GameObject.Find("Music").GetComponent <AudioSource>(); player = GameObject.FindGameObjectWithTag("MasterPlayer"); dollah = player.GetComponent <Dollah>(); emotions = GetComponent <AnimationManager>(); }