예제 #1
0
    private void OnTriggerEnter(Collider other)
    {
        //If hit a target, explode right away.
        TargetObject target = other.gameObject.GetComponent <TargetObject>();

        if (target != null)
        {
            target.Destroy();
            gameManager.ChangeWind();
        }
    }