示例#1
0
    void Start()
    {
        Cursor.lockState = CursorLockMode.Locked;

        if (PV.IsMine)
        {
            EquipItem(0);
            InGameUi = Instantiate(InGameUi, Vector3.zero, Quaternion.identity);
            InGameUi.transform.parent        = gameObject.transform;
            inGameUiController               = InGameUi.GetComponent <InGameUi>();
            inGameUiController.healthManager = GetComponent <HealthManager>();
            score = inGameUiController.GetComponentInChildren <ScoreCounter>();
        }
        else
        {
            Destroy(GetComponentInChildren <Camera>().gameObject);
        }
    }