示例#1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.GetComponent <PlayerControl>() != null)
     {
         other.GetComponent <SpecialAbilities>().abilities[abilityKeyIndex] = abilityConfig;
         abilityConfig.AttachAbility(other.gameObject);
         Destroy(this);
     }
 }