예제 #1
0
    void OnTriggerEnter(Collider other)
    {
        Alive livingThing = other.GetComponent <Alive>();

        if (livingThing)
        {
            livingThing.Kill();
        }
    }