public bool IsAiding(MiroModelV1 another) { bool bAid = (_Pump != null); if (bAid) { bAid = _Pump.IsGrown(); MiroV1PumpBase pump = _Pump.GetComponent <MiroV1PumpBase> (); bAid = bAid && (pump.GetModelAidee() == another); } return(bAid); }
public void AddPump(MiroV1PumpBase pump) { _Pump = pump; pump.transform.SetParent(_PumpParentTF); }