// Use this for initialization void Start() { renderer = otherObject.GetComponent <SpriteRenderer>(); this.baseAttack = 1.0f; this.attackSpeed = 4.0f; otherAnimator = otherObject.GetComponent <Animator> (); pt = gameObject.GetComponentInChildren <PlayerTrigger> (); dg = GameObject.FindWithTag("displayGUI").GetComponent <displayGUI>(); this.gameOverScreenDisplaying = false; }
// Use this for initialization void Start() { player = transform.parent.GetComponent <Player> (); dg = GameObject.FindGameObjectWithTag("displayGUI").GetComponent <displayGUI>(); }