Exemple #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.GetComponentInChildren <KeySnap>() != null && targetKeyPart == other.gameObject)
        {
            mergeAbility             = true;
            keyTransformer.Keycount += 1;

            if (keyTransformer.Keycount == 6)
            {
                keyTransformer.AssembleKey();
            }
        }
    }