コード例 #1
0
    public void ReactToHit()
    {
        AIBehavior behavior = GetComponent <AIBehavior>();

        if (behavior != null)
        {
            behavior.SetAlive(false);
        }
        StartCoroutine(Die());
    }