예제 #1
0
    public void OnAIKilled(AIDriver driver)
    {
        MainGame.Instance.Controllers.Unregister(driver);
        foreach (var collider in driver.GetComponentsInChildren <Collider>())
        {
            collider.enabled = false;
        }

        driver.GetComponent <DeadBody>().JustDied();
    }