示例#1
0
    void OnCollisionEnter(Collision c)
    {
        // force is how forcefully we will push the player away from the enemy.

        // If the object we hit is the enemy
        if (c.gameObject.tag == "Player")
        {
            Handler.CollidedWithPlayer(gameObject);
        }
    }