Exemple #1
0
    public override void DoStart(byte[] data = null)
    {
        base.DoStart(data);

        UtilFunc.ChangeLayersRecursively(m_Owner.transform, Define.BATTLE_ACTION_LAYER);

        m_Owner.StartCoroutine(ActionProc());
    }
Exemple #2
0
    public void InitHeroTween()
    {
        var hero = BattleHeroManager.Instance.GetHeroControl(ActiveTurnHeroNo);

        if (hero != null)
        {
            hero.InitHeroTween();
            hero.IsMyTurn = false;

            UtilFunc.ChangeLayersRecursively(hero.transform, Define.DEFAULT_LAYER);
        }

        hero = BattleHeroManager.Instance.GetHeroControl(ActiveTargetHeroNo);
        if (hero != null)
        {
            hero.InitHeroTween();

            UtilFunc.ChangeLayersRecursively(hero.transform, Define.DEFAULT_LAYER);
        }
    }