Exemplo n.º 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Body Part"))
     {
         CenterBodypartController centerBody = collision.transform.GetComponent <BodyPartController>().GetCenterBodyPart();
         centerBody.OnChangeCharacterToDynamic(centerBody.transform.parent);
     }
 }
 protected void OnNotGrounded()
 {
     _centerBody.OnChangeCharacterToDynamic(transform.parent);
     Destroy(gameObject);
 }