Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     //物体获取
     roundManager    = GameObject.Find("RoundManager").GetComponent <RoundManager>();
     heroAwakeCurved = GameObject.Find("HeroAwakePrefab").GetComponent <HeroAwakeCurved>();
     enemyHCurved    = GameObject.Find("EnemyHCPrefab").GetComponent <EnemyHCurved>();
     cardEffect      = GameObject.Find("AllCardEffect").GetComponent <CardEffect>();
     showingCard     = GameObject.Find("EnemyShowCardParent").GetComponent <EnemyShowCard>();
 }
Exemple #2
0
    public int addDamage;//附加伤害

    private void Start()
    {
        cardEffect    = GameObject.Find("AllCardEffect").GetComponent <CardEffect>();
        enemyShowCard = GameObject.Find("EnemyShowCardParent").GetComponent <EnemyShowCard>();
        cardCurved    = GameObject.Find("HandCardPrefab").GetComponent <CardCurved>();
        enemyHCurved  = GameObject.Find("EnemyHCPrefab").GetComponent <EnemyHCurved>();

        delayAttack = false;
        addDamage   = 0;
    }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     showingCard  = GameObject.Find("EnemyShowCardParent").GetComponent <EnemyShowCard>();
     roundManager = GameObject.Find("RoundManager").GetComponent <RoundManager>();
     enemyHCurved = GameObject.Find("EnemyHCPrefab").GetComponent <EnemyHCurved>();
 }