Beispiel #1
0
    void Start()
    {
        SoundManager.instance.PlayBGM("Fight");
        SoundManager.instance.PlaySFX("FightIntro");

        SC = mainPlayer.GetComponentInChildren <ShootingScripts>();
        FadeOut();
        photonView.RPC("MagneticFieldSetActiveRPC", RpcTarget.All, false);

        StartCoroutine("CheckPlayerCount");
        animalSpawnCounter = GameObject.FindGameObjectsWithTag("Animals").Length;
        InfoText.enabled   = false;

        if (PhotonNetwork.IsMasterClient)
        {
            photonView.RPC("ShrinkInfoTextStart", RpcTarget.All, null);
        }
    }
Beispiel #2
0
 void Start()
 {
     ownPlayer       = GameManager.instance.mainPlayer;
     shootingScripts = GameManager.instance.SC;
 }