Beispiel #1
0
    void OnCollisionEnter2D(Collision2D c)
    {
        if (c.gameObject.name == "ActionTaker" || (c.gameObject.name == "Guide" && GridPosition.ComparePos(guide.GetComponent <Guide>().gridPosition, actionTaker.GetComponent <ActionTaker>().gridPosition)))
        {
            hitPlayer = true;
            audioS.PlayOneShot(damage);
            generalManager.GetComponent <PlayerEffectManager>().damageTimer = 255f;

            ManageDestroy();
        }
    }