Exemplo n.º 1
0
    IEnumerator BindAnimator()
    {
        yield return(new WaitForEndOfFrame());

        animator.Rebind();
        unitControl = GetComponent <UnitControl>();
        SetupAttachPoints(unitControl);
        unitControl.Init();
        Destroy(this);
    }