// Use this for initialization void Start() { opended = false; rend = GetComponent <Renderer>(); rend.enabled = true; rend.sharedMaterial = mat[0]; tdp = Door.GetComponent <tombDoorPuzzle>(); b1 = bolder1.GetComponent <Rigidbody>(); b2 = bolder2.GetComponent <Rigidbody>(); }
// Start is called before the first frame update void Start() { triggered = false; tdp = door.GetComponent <tombDoorPuzzle>(); cam.gameObject.SetActive(false); }