public CampSys() { Ins = this; if (RelationThreshold == null) { LoadInfo(Config.CampInfoValuePath); } }
private void OnTriggerEnter(Collider col) { if (!col.GetComponent <BaseCharacter>(out var character)) { return; } if (CampSys.IsAlly(Camp, character.Camp)) { return; } BindTarget(character); }
private void OnTriggerEnter(Collider col) { if (!col.TryGetComponent <BaseCharacter>(out var character)) { return; } if (!CampSys.IsHate(Camp, character.Camp)) { return; } SetTarget(character); _CheckRange.enabled = false; }