public bool HoldingInteractorOfType(BlockInteractors interactorType) { if (!_hasInteractor) { return(false); } return(GetInteractor().InteractorType == interactorType); }
public void SetInteractor(BlockInteractors blockInteractor) { DeactivateAllInteractors(); if (blockInteractor == BlockInteractors.Dig) { _digInteractor.enabled = true; } else if (blockInteractor == BlockInteractors.RaiseWater) { _raiseWaterInteractor.enabled = true; } else if (blockInteractor == BlockInteractors.RaiseLand) { _raiseLandInteractor.enabled = true; } else if (blockInteractor == BlockInteractors.PlaceGreens) { _placeGreensInteractor.enabled = true; } else if (blockInteractor == BlockInteractors.SendMeteor) { _sendMeteorInteractor.enabled = true; } else if (blockInteractor == BlockInteractors.MakeDesert) { _makeDesertInteractor.enabled = true; } else if (blockInteractor == BlockInteractors.ConstructHouse) { _constructHouseInteractor.enabled = true; } else if (blockInteractor == BlockInteractors.ConstructDocks) { _constructDocksInteractor.enabled = true; } else if (blockInteractor == BlockInteractors.ConstructFarm) { _constructFarmBlockInteractor.enabled = true; } _hasInteractor = true; }