Пример #1
0
    private void OnParticleCollision(GameObject other)
    {
        int numCollisionEvents = _particle.GetCollisionEvents(other, collisionEvents);

        for (int i = 0; i < numCollisionEvents; i++)
        {
            if (other.gameObject.CompareTag("Grass"))
            {
                _grassBehaviour.GetComponent <GrassBehaviour>();
                _grassBehaviour.isGood = true;
                Debug.Log(other.gameObject.name);
            }
        }
    }