예제 #1
0
    private void RegistAdaptor(GameObject goEffect, NkEffectUnit kEffectUnit)
    {
        TsAnimationEventConnector componentInChildren = goEffect.GetComponentInChildren <TsAnimationEventConnector>();

        if (null != componentInChildren)
        {
            NkBattleChar      casterChar        = kEffectUnit.CasterChar;
            NrCharInfoAdaptor nrCharInfoAdaptor = NkUtil.GuarranteeComponent <NrCharInfoAdaptor>(goEffect);
            nrCharInfoAdaptor.SetCharInfoInterface(new NrCharInfoLogic(casterChar));
        }
    }