Example #1
0
    private void Awake()
    {
        Instance = this;
        if (!PhotonNetwork.IsConnected)
        {
            PhotonNetwork.OfflineMode = true;
        }
        isMasterClient = PhotonNetwork.IsMasterClient;

        GameManager.Instance.initScripts += Init;
    }
Example #2
0
    void Awake()
    {
        animator = GetComponent <Animator>();

        // Temporaire
        component = GetComponent <Text>();
        if (component == null)
        {
            component = GetComponent <Image>();
        }
        if (component == null)
        {
            component = GetComponent <TextMesh>();
        }

        inGamePhoton = InGamePhotonManager.Instance;
    }