Exemplo n.º 1
0
 public void InitByClone(Card clonecard)
 {
     this.battleManager = clonecard.battleManager;
     m_IsEnemy          = clonecard.m_IsEnemy;
     ChangeHPAndATKLine();
     m_CardName   = clonecard.m_CardName;
     m_HurtEffect = clonecard.m_HurtEffect;
     ChangeHP(clonecard.m_HP);
     ChangeATK(clonecard.m_ATK);
     m_Cost         = clonecard.m_Cost;
     m_CurrentHurt  = 0;
     m_CurrentHurtA = 0;
     m_CardType     = clonecard.m_CardType;
     InitAnimation(clonecard.animationConfig.m_SpiteName);
     PrepareForBattle();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     bloodBar1  = GameObject.FindWithTag("BloodBar_1").GetComponent <BloodBar>();
     bloodBar2  = GameObject.FindWithTag("BloodBar_2").GetComponent <BloodBar>();
     hurtEffect = GameObject.FindWithTag("HurtEffect").GetComponent <HurtEffect>();
 }
Exemplo n.º 3
0
 private void Awake()
 {
     this.navMeshAgent = this.GetComponent <NavMeshAgent>();
     this.animator     = this.GetComponent <Animator>();
     this.hurtEffect   = this.GetComponent <HurtEffect>();
 }