Ejemplo n.º 1
0
    void OnTriggerEnter2D(Collider2D Other)
    {
        if (Other.GetComponent <Rigidbody2D> () == null)
        {
            return;
        }

        AmmoManager.Addpoints(PointToAdd);

        Destroy(gameObject);
    }