// Use this for initialization void Start() { bipScript = bip.GetComponent <BipScript>(); animator = GetComponent <Animator>(); stateText.color = Color.clear; isCoinTaken = false; }
// Use this for initialization void Start() { bipScript = bip.GetComponent <BipScript>(); drawersScript = drawers.GetComponent <DrawerScript>(); animator = GetComponent <Animator>(); for (int i = 0; i < 3; i++) { isCoinTaken[i] = false; } }