private void OnTriggerExit(Collider other) { if (other.GetComponentInParent <ForgePrototype>() == _currentProtoType) { _currentIngot = RandomInitAIngot(); _currentProtoType = _currentIngot.GetComponentInChildren <ForgePrototype>(); } }
private void Start() { _currentIngot = RandomInitAIngot(); _currentProtoType = _currentIngot.GetComponentInChildren <ForgePrototype>(); }