Ejemplo n.º 1
0
    public void RemoveEnemy(EnemyMultiBrain en)
    {
        if (playerBrain.playerStats.BloodThirst)
        {
            Debug.Log("bloodthrist");
            playerBrain.GainHealth(en.hpReward / 2);
        }

        enemiesList.Remove(en.transform);
    }
Ejemplo n.º 2
0
    public void Init(int wId, EnemyMultiBrain emb, EnemyMotor em, EnemyProjectile ep, Transform we)
    {
        weaponID = wId;

        brain            = emb;
        motor            = em;
        projectilePrefab = ep;
        gunEnd           = we;
        //projectilePrefab.weaponStats.Init(weaponID);
    }
Ejemplo n.º 3
0
    // Start is called before the first frame update
    public void Init(EnemyMultiBrain emb, CapsuleCollider2D c)
    {
        brain       = emb;
        capCollider = c;

        if (brain.levelManager.enemiesList.Count > 1)
        {
            for (int i = 0; i < brain.levelManager.enemiesList.Count; i++)
            {
                Physics2D.IgnoreCollision(capCollider, brain.levelManager.enemiesList[i].GetComponent <CapsuleCollider2D>());
            }
        }


        //StartCoroutine(StartMove(2f));
    }