Exemple #1
0
    void OnTriggerExit2D(Collider2D collidingObject)
    {
        Debug.Log("On trigger exit");

        if (collidingObject.gameObject.CompareTag("CameraCrowdColliderRow1"))
        {
            mapManager.AddNextCrowdRobot(transform.position, transform.parent);

            robotManager.deleteRobot(gameObject);
            //Destroy (gameObject);
        }
    }