Ejemplo n.º 1
0
    public void Report(newGameManager gameManager)
    {
        if (gameManager != null)
        {
            gm = gameManager;
        }

        pv.RPC("ReportRpc", RpcTarget.All);
    }
Ejemplo n.º 2
0
    public void Start()
    {
        pv = GetComponent <PhotonView>();
        gm = newGameManager.Instance;
        newPlayerManager npm = newPlayerManager.localNpm;

        if (npm.allBodies != null)
        {
            npm.allBodies.Add(transform);
        }

        reportButton = newPlayerManager.localNpm.reportButton;
    }
Ejemplo n.º 3
0
    void Start()
    {
        players            = GameObject.FindGameObjectsWithTag("Player");
        _allPlayerManagers = new List <newPlayerManager>();
        EnemyScreen.GetComponent <EndScreenDelay>().GameManager = this;

        foreach (GameObject player in players)
        {
            _allPlayerManagers.Add(player.GetComponent <newPlayerManager>());
            newPlayerManager npm = player.GetComponent <newPlayerManager>();
            npm.GameManager = this;
            npm.changeCameraValueByScene();
            npm.setCanvasButton(buttonCanvas);
            npm.transform.localPosition = spawnsPoints[npm.NumberInRoom].position;
            npm.DebugText = debugText;
        }

        welcomeScreen.GetComponent <welcomeScreen>().player = newPlayerManager.LocalPlayerInstance.GetComponent <newPlayerManager>();
        welcomeScreen.SetActive(true);
        welcomeScreen.GetComponent <welcomeScreen>().switchScreen();
        StartCoroutine(loading());
        Instance = this;
        StartCoroutine(welcomePanelDelay());
    }