This commit is contained in:
Benjamín 2021-07-20 20:36:16 +02:00
parent 93fec36bdd
commit f7042cdd2b
2 changed files with 8 additions and 15 deletions

@ -639,8 +639,8 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1419812560} m_GameObject: {fileID: 1419812560}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 3.7088284, y: -10.5, z: 0.70835644} m_LocalPosition: {x: 17.7342, y: -10.9912, z: 0.70835644}
m_LocalScale: {x: 17.397755, y: 1.9050395, z: 1} m_LocalScale: {x: 101.93455, y: 0.9226782, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 8146526} m_Father: {fileID: 8146526}
m_RootOrder: 3 m_RootOrder: 3

@ -4,21 +4,14 @@ using UnityEngine;
public class Death : MonoBehaviour public class Death : MonoBehaviour
{ {
// Start is called before the first frame update
void Start()
{
void Start() {
Debug.Log("hello");
} }
private void OnCollisionEnter2D (Collision2D collisionInfo)
// Update is called once per frame
void Update()
{ {
Debug.Log(collisionInfo.collider.transform);
} collisionInfo.collider.transform.position = Vector3.zero;
public void OnCollisionEnter(){
Debug.Log("B");
} }
} }