Beispiel #1
0
 public void Start()
 {
     health = GetComponent <Health> ();
     quorum = GetComponent <Quorum> ();
     qc     = FindObjectOfType <QuorumController> ();
     HideBodies();
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     col         = GetComponent <Collider> ();
     col.enabled = true;
     qc          = FindObjectOfType <QuorumController> ();
 }