void Start()
    {
        ui = FindObjectOfType <UIMANAGAER>();
        GameObject crow = Instantiate(ui.aicrown, new Vector3(this.transform.position.x, ui.aicrown.transform.position.y, this.transform.position.z), ui.aicrown.transform.rotation);

        crow.transform.SetParent(this.transform);
        crow.SetActive(false);
    }
    private void Awake()
    {
        player = FindObjectOfType <Player>();
        ui     = FindObjectOfType <UIMANAGAER>();
        GameObject crow = Instantiate(ui.playercrown, new Vector3(this.transform.position.x, ui.playercrown.transform.position.y, this.transform.position.z), ui.playercrown.transform.rotation);

        crow.transform.SetParent(this.transform);
        crow.SetActive(false);
    }
 void Start()
 {
     UI = FindObjectOfType <UIMANAGAER>();
 }