Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        Bind(CharacterEvent.SELECT_OTHERCARD);

        myArmyCtrlManager      = GetComponent <MyArmyCtrlManager>();
        myCharacterCtrl        = GetComponent <MyCharacterCtrl>();
        selectArmyCtrlDelegate = processSelectArmyDelegate;
        socketMsg = new SocketMsg();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        Bind(MapEvent.SELECT_ARMYCARD);
        Bind(MapEvent.CANCEL_SELECT_ARMYCARD);
        Bind(MapEvent.SET_OTHER_ARMY);
        Bind(MapEvent.MOVE_MY_ARMY);
        Bind(MapEvent.MOVE_OTHER_ARMY);

        myCharacterCtrl = GetComponent <MyCharacterCtrl>();
        myArmyCtrls     = GetComponent <MyArmyCtrlManager>();

        socketMsg  = new SocketMsg();
        pointDto   = new MapPointDto();
        mapMoveDto = new MapMoveDto();
    }
Ejemplo n.º 3
0
    private CardCtrl backAttackCardCtrl; //反击手牌

    private void Awake()
    {
        Instance = this;
    }