I think they would adapt to the same scheme, you'd have to calculate the time it takes for the planet to rotate one time, i guess we would keep the concept of minutes, hours, etc but adapt it to the planet we would go to.
Juice is not just about adding animations or particles but it's more about about knowing WHERE to add it and HOW, take for example Candy Crush, the devs knew exactly how to hook people with juice.
You'll have to create an interaction component class and interface IInteractable.
In the interface create a method called OnInteraction() and implement this interface on the needed classes.
On the interaction component create a method Interact and have it shoot a raycast when you press a certain button in the direction you're looking, with the TryGetComponent method on the hit variable of the raycast look for an IInteractable interface, if found, execute the OnInteraction() method.
This os as far as i can help from mobile. Look into the documentation of Physics2D.Raycast and TryGetComponent if needed.
Look into UML diagrams, they are a visual representation of the code you'll be writing. It's used to keep track of the classes and the dependencies in the project. It's kind of imperative to have one (and keep it updated) in order to not fall into spaghetti hell. Diagrams.net is the website i personally use for this.
I think they would adapt to the same scheme, you'd have to calculate the time it takes for the planet to rotate one time, i guess we would keep the concept of minutes, hours, etc but adapt it to the planet we would go to.
Really? Never knew that, thanks!
Juice is not just about adding animations or particles but it's more about about knowing WHERE to add it and HOW, take for example Candy Crush, the devs knew exactly how to hook people with juice.
You'll have to create an interaction component class and interface IInteractable.
In the interface create a method called OnInteraction() and implement this interface on the needed classes.
On the interaction component create a method Interact and have it shoot a raycast when you press a certain button in the direction you're looking, with the TryGetComponent method on the hit variable of the raycast look for an IInteractable interface, if found, execute the OnInteraction() method.
This os as far as i can help from mobile. Look into the documentation of Physics2D.Raycast and TryGetComponent if needed.
Best of luck!
Look into UML diagrams, they are a visual representation of the code you'll be writing. It's used to keep track of the classes and the dependencies in the project. It's kind of imperative to have one (and keep it updated) in order to not fall into spaghetti hell. Diagrams.net is the website i personally use for this.