Ejemplo n.º 1
0
    public void Init(FSM targetFsm, HeroCharacter heroCharacter)
    {
        CommandSlot commandSlot = heroCharacter.GetCommandSet("skill") as CommandSlot;
        slot.Init(commandSlot, heroCharacter);
        commandSlot.RegistUI(slot);

        foreach (var entity in slot.GetComponentsInChildren<UIButtonMessage>(true))
        {
            entity.fsm = targetFsm;
        }
    }