private void Start()
    {
        funcTransform       = HandleTransform;
        funcColor           = HandleColor;
        setPlayerNumberFunc = SetPlayerNumber;
        funcGameState       = OnGameStateChange;

        Wrapper.SetFuncTransform(funcTransform);
        Wrapper.SetFuncPlayerNumber(setPlayerNumberFunc);
        Wrapper.SetFuncColor(funcColor);
        Wrapper.SetFuncGameState(funcGameState);

        hostScreen.SetActive(false);
        clientScreen.SetActive(false);
        winScreen.SetActive(false);

        if (Wrapper.NetworkingPlugin_IsServer())
        {
            hostScreen.SetActive(true);
        }
        else
        {
            clientScreen.SetActive(true);
        }
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     //Debug.Log(gameObject.name);
     audioSource = GetComponent <AudioSource>();
     Boss        = GameObject.Find("Boss");
     funcSound   = HandleSound;
     Wrapper.SetFuncShout(funcSound);
 }
示例#3
0
    // Use this for initialization
    void Start()
    {
        hp = 1000;

        attackTimer = attackTimerMax;
        bossHP      = HandleHP;
        Wrapper.SetFuncBossHP(bossHP);
    }