// Start is called before the first frame update private void Start() { spriteRenderer = gameObject.GetComponent <SpriteRenderer>(); deathFloorScript = gameObject.GetComponent <DeathFloorBehavior>(); }
// Start is called before the first frame update void Start() { spriteRenderer = gameObject.GetComponent <SpriteRenderer>(); deathFloorScript = gameObject.GetComponent <DeathFloorBehavior>(); objCollider = gameObject.GetComponent <Collider2D>(); }