public bool Open(ProgrammerPanel cpu, GameObject cell) { if (this.gameObject.activeSelf) { if (!actual.Equals(cell)) { this.actual = cell; return(true); } else { this.gameObject.SetActive(false); return(false); } } this.gameObject.SetActive(true); return(true); }
public void Open(ProgrammerPanel cpu, GameObject cell) { this.gameObject.SetActive(true); this.cpu = cpu; Init(cell.GetComponent <Cell>().addr); }
public void Start() { programmer = programmerPanel.GetComponent <ProgrammerPanel>(); }