Exemplo n.º 1
0
    void Start()
    {
        NpcShouJiFanKui = GetComponent <XKNpcDamageCtrl>();
        int max = HiddenNpcObjArray.Length;

        for (int i = 0; i < max; i++)
        {
            if (HiddenNpcObjArray[i] == null)
            {
                Debug.LogWarning("HiddenNpcObjArray was wrong! index " + i);
                GameObject obj = null;
                obj.name = "null";
                break;
            }
        }

        if (MaxAmmoHurtLiZi > 0)
        {
            if (HurtLiZiObj == null)
            {
                Debug.LogError("HurtLiZiObj is null");
                HurtLiZiObj.name = "null";
            }
        }
        NpcScript = GetComponentInParent <XKNpcMoveCtrl>();
    }