示例#1
0
    void Start()
    {
        cHpShlds = GetComponent <A_HealthShields>();

        rPC = FindObjectOfType <PC_Cont>();
        if (rPC == null)
        {
            Debug.Log("No player character found");
        }

        gUI = GetComponentInChildren <UI_EN>();
        if (gUI == null)
        {
            Debug.Log("No enemy UI found");
        }
    }