コード例 #1
0
    private void Initialise()
    {
        playerCamera.SetActive(IsConnectedAndMine() ? true : false);
        hitInfoDetectionCol.SetActive(IsConnectedAndMine() ? false : true);

        playerController.Inititalise(IsConnectedAndMine());
        weaponSlot.Initialise(IsConnectedAndMine());
        playerAnimController.Initialise(IsConnectedAndMine());
        playerInteractionController.Initialise(IsConnectedAndMine());

        if (IsConnectedAndMine())
        {
            //entity.GetComponent<Collider>().enabled = false;
            GameManager.OnGameStateChanged += GameManager_OnGameStateChanged;

            DontDestroyOnLoad(gameObject);
        }
    }