Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor triggering #27

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Refactor triggering #27

wants to merge 6 commits into from

Conversation

JuanmaLambre
Copy link
Member

@JuanmaLambre JuanmaLambre commented Jun 15, 2020

Elements which can interact with ARPB2 should now have a child of ElementBehaviour component attached, overriding the method InteractWith.

Properties of ElementBehaviour include:

  • Solid: whether ARPB2 can stand on the same square or not. Nothing should be solid, except for walls and similar things
  • Type: Usefull to differentiate between different children of ElementBehaviours
  • AutomaticInteraction: whether ARPB2 should manually interact with the element using the action interact. Teleports are manual.

NOTA: No se pq me subió 200 assets 🤷 Si se quiere revisar el código, hacer Ctrl + F, ".cs"

@mastanca mastanca self-requested a review June 16, 2020 02:06
Copy link
Member

@mastanca mastanca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lo probé y anda todo salvo el teleport que se rompe porque falta el file que comenté

transform.rotation = endRotation;
transform.position = endPosition;

OnTurnLeftFinished();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acá se te van a llamar ambos sea cual sea el sentido en el que rotes. No recuerdo que hacen y creo que no pasa nada pero puede ser una fuente de bugs a futuro (si es que lo tiene)

@@ -1,261 +0,0 @@
using UnityEngine;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Este file que venia con el modelo era el que manejaba toda la logica de teletransportación, ya la traia resuelta. Para no reinventarlo no podriamos usarlo junto con el behaviour y hacer como un delegate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants