public void Start() { health = GetComponent <Health> (); quorum = GetComponent <Quorum> (); qc = FindObjectOfType <QuorumController> (); HideBodies(); }
public void Start() { // get the quorum controller qc = FindObjectOfType <QuorumController>(); // Load the type GameObject gm = bacTypes [currentType]; if (gm) { currentBacteria = gm.GetComponent <Bacteria> (); } // add the row/col to the bacteria data currentBacteria.row = row; currentBacteria.col = col; // Set the values in the display SetValues(); // Add the bacteria to the quorum qc.AddBacteria(currentBacteria); }
// Use this for initialization void Start() { col = GetComponent <Collider> (); col.enabled = true; qc = FindObjectOfType <QuorumController> (); }