// Start is called before the first frame update void Start() { totalZap = currentZap; Content = 0; transform = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); crateMaster = master.crateMaster; this.gridRef = master.gridRef; }
public Crate(int posX, int posY, Conductor master, int content) { PositionX_Grid = posX; PositionY_Grid = posY; this.Content = content; this.gridRef = master.gridRef; this.crateMaster = master.crateMaster; RegisterCrate(); }
public Factory(int posX, int posY, Conductor master, GameObject factoryGO) { PosGrid_X = posX; PosGrid_Y = posY; this.gridRef = master.gridRef; this.crateMaster = master.crateMaster; FactoryGO = factoryGO; ReStock(); }