示例#1
0
    // Update is called once per frame
    void Update()
    {
        int numP = bi.getNumPlayers(baseChar);

        if (numP == count)
        {
            gameObject.renderer.enabled = true;
            bi.setStart(true);
        }
        else
        {
            gameObject.renderer.enabled = false;
            bi.setStart(false);
        }
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     selection.Play();
     bi         = GameObject.FindGameObjectWithTag("BattleInformer").GetComponent <BattleInformer>();
     numPlayers = bi.getNumPlayers();
 }
示例#3
0
文件: Scenary.cs 项目: Fonserbc/ETLYT
 // Use this for initialization
 void Start()
 {
     selection.Play();
     bi = GameObject.FindGameObjectWithTag("BattleInformer").GetComponent<BattleInformer>();
     numPlayers = bi.getNumPlayers();
 }