Exemplo n.º 1
0
    void OnTriggerEnter(Collider other)
    {
        Skeletton s = other.gameObject.GetComponent <Skeletton>();

        if (s != null)
        {
            player.Attack();
        }
    }