Esempio n. 1
0
    protected virtual void Awake()
    {
        transform.SetParent(Global.instance.m_BattleGround);

        this.SetLayer();

        m_AniMng = GetComponent <RoleAnimation>();
        m_Canvas = GetComponentInChildren <Canvas>();

        m_IE_Attack        = null;
        m_Invincible       = false;// test
        m_IE_StopInvicible = null;
        m_CurVec_Move      = Vector2.right;
        m_NextDustPlayTime = 0;
        m_IE_MoveTo        = null;
        if (m_TalkText)
        {
            m_TalkText.text = "";
        }
        m_EffectiveVal = 1f;

        // create dic
        this.CreateDmgDic();
        this.InitNavNBehaviorTree();
    }
Esempio n. 2
0
 public override void OnAwake()
 {
     m_RoleAnimation     = gameObject.GetComponentInChildren <RoleAnimation>();
     m_SkeletonAnimation = gameObject.GetComponentInChildren <RoleAnimation>().m_SkeAnimation_0;
 }