예제 #1
0
    public void React()
    {
        Wandering behavior = GetComponent <Wandering>();

        if (behavior != null)
        {
            behavior.setAlive(false);
        }
        StartCoroutine(Die());
    }
예제 #2
0
    private void OnEnable()
    {
        Wandering behavior = GetComponent <Wandering>();

        behavior.setAlive(true);
    }