예제 #1
0
 public void Start()
 {
     health = GetComponent <Health> ();
     quorum = GetComponent <Quorum> ();
     qc     = FindObjectOfType <QuorumController> ();
     HideBodies();
 }
예제 #2
0
        void Start()
        {
            ComputeQuorumValue();
            UpdateCanvas();
            bacs           = new Bacteria[5, 5];
            Time.timeScale = 0;
            GameObject player = GameObject.FindWithTag("Player");

            playerQuorum    = player.GetComponent <Quorum> ();
            lastPausePoints = points;
            if (loopSource && MenuLoop)
            {
                loopSource.clip = MenuLoop;
                loopSource.Play();
            }
        }