public void SetPlayer(PlayerInventory playerInventory) { ready = true; this.playerInventory = playerInventory; geneticCrossingPanelComponent = geneticCrossingPanel.GetComponent <GeneticCrossingPanel> (); geneticCrossingPanelComponent.SetPlayerInventoryGrid(this); }
public void SetInventoryGrid(PlayerInventoryGrid playerInventoryGrid) { this.playerInventoryGrid = playerInventoryGrid; geneticCrossingPanel = playerInventoryGrid.geneticCrossingPanel.GetComponent <GeneticCrossingPanel>(); }