private void Awake() { SpriteRenderer = GetComponent <SpriteRenderer>(); SpriteRenderer.sprite = Sprite; Map = FindObjectOfType <Map>(); Output = FindObjectOfType <OutputBox>(); // Health Display HealthDisplayObject = new GameObject("Health Display"); HealthDisplayObject.transform.SetParent(transform); HealthDisplay = HealthDisplayObject.AddComponent <HealthDisplay>(); HealthDisplay.HealthPrefab = HealthPoint; HealthDisplay.StartUp(); }