Hi I’ve started and didn’t seem to find out what was wrong. This script is assigned to the cube that is supposed to drop on the player but it doesn’t set the material to false or physics. It just falls normally instantly, I feel like I’ve copied line by line but maybe I’ve missed a critical step? Bashing my head against a wall here any help is appreciated, thanks!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Dropper : MonoBehaviour
{
MeshRenderer renderer;
Rigidbody rigidbody;
[SerializeField] float Droptimer = 3f;
void start()
{
renderer = GetComponent<MeshRenderer>();
rigidbody = GetComponent<Rigidbody>();
renderer.enabled = false;
rigidbody.useGravity = false;
}
}