private void Start() { timesUpdated = 0; spriteRenderer = GetComponent <SpriteRenderer>(); minerMineShaft = GetComponentInParent <MineShaft>(); loadingPosition = minerMineShaft.GetEndOfMine(); unloadingPosition = minerMineShaft.GetMineshaftContainer(); shaftContainer = minerMineShaft.GetElevatorShaftContainer(); capacity = Mathf.RoundToInt(GameCore.Instance.GetAmountOfMineshafts() * GameCore.Instance.Data.NewShaftValueMultiplier) + 5; }
public void AddNewLoadingPositions(MineContainer newShaftElevatorShaft) { loadingPositions.Add(newShaftElevatorShaft); }