Beispiel #1
0
    private void Initialize()
    {
        heroActor  = myHero.GetComponentInChildren <Actor>();
        enemyActor = enemyHero.GetComponentInChildren <Actor>();

        myHero.transform.localRotation = Quaternion.Euler(0, 180, 0);
        myHero.transform.localScale    = new Vector3(Define.ACTION_START_SCALE, Define.ACTION_START_SCALE, Define.ACTION_START_SCALE);
        enemyHero.transform.localScale = new Vector3(Define.ACTION_START_SCALE, Define.ACTION_START_SCALE, Define.ACTION_START_SCALE);

        mActionCommendExcutor = new HeroBattleActionCommendExcutor();
        mActionCommendExcutor.Initialize(this);

        //TBManager.Instance.LoadTableAll();
    }
Beispiel #2
0
    public void InitHero(int sortingOrder)
    {
        InitPos = HeroObj.transform.localPosition;

        mActionManager = new HeroBattleActionManager();
        mActionManager.Initialize(this);

        mActionCommendExcutor = new HeroBattleActionCommendExcutor();
        mActionCommendExcutor.Initialize(mActionManager);

        DefaultSortingOrder = sortingOrder;
        SetSortingOrder(sortingOrder);

        SetPosHPUI();
    }