Exemplo n.º 1
0
 private bool CheckCustomerPositionRequirements(MNode node)
 {
     if (!node)
     {
         return(false);
     }
     Debug.Log(node.GetPositionInTileMap());
     return(node.GetPositionInTileMap() == checkPoint);
 }
Exemplo n.º 2
0
 protected virtual void OnInteractionWithItem(MNode playerPosition)
 {
     if (GetPositionInTileMap() == playerPosition.GetPositionInTileMap())
     {
         Interact();
     }
 }
Exemplo n.º 3
0
 private bool CheckPlayerPositionRequirements(MNode node, out float ticketValue)
 {
     ticketValue = node.GetTicketValue();
     return(node.GetPositionInTileMap() == dropoffPoint);
 }
Exemplo n.º 4
0
 private bool CheckPlayerPositionRequirements(MNode node)
 {
     return(node.GetPositionInTileMap() == dropoffPoint);
 }
Exemplo n.º 5
0
 private bool CheckCustomerPositionRequirements(MNode node)
 {
     return(node.GetPositionInTileMap() == checkPoint);
 }
Exemplo n.º 6
0
 public Vector3Int GetPositionInTileMap()
 {
     //returns the position of the corresponding node, not of the person
     return(node.GetPositionInTileMap());
 }