Timeline for How can I make item interactable for action?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 8, 2018 at 21:46 | vote | accept | Daniel Lip | ||
Mar 8, 2018 at 21:23 | comment | added | Leo | Let us continue this discussion in chat. | |
Mar 8, 2018 at 21:20 | comment | added | Daniel Lip | Great it's working. Thank you very much. Just a small question, When interacting with a object for example a door in the ExampleAction I can then work on any other objects I mean by logic if the interactable object is a door then the logic is to do something only with the door ? For example I clicked on the door instead making the door open to make some cube to move around. | |
Mar 8, 2018 at 18:42 | comment | added | Leo | Using the first version of your code, I updated your classes, to use it, you should just add the ExampleAction component to the interactable object. DetectInteractable.cs: pastebin.com/Kks0aeAW / ItemAction.cs: pastebin.com/chaXbuGc / ExampleAction.cs: pastebin.com/SumQALyk | |
Mar 8, 2018 at 16:44 | comment | added | Daniel Lip | I have updated my question now with how I did it. Not sure where and how the ItemActions class should be used if at all. | |
Mar 8, 2018 at 16:38 | comment | added | Daniel Lip | I have a question just to make something clear. I will update my question with what I did. | |
Mar 8, 2018 at 15:58 | comment | added | Leo | I updated the question, I don't know if the example is specific enough. | |
Mar 8, 2018 at 15:57 | history | edited | Leo | CC BY-SA 3.0 |
added 1446 characters in body
|
Mar 8, 2018 at 15:07 | comment | added | Leo | You can keep using the current ItemInformation as it is. In the future you might find that the current implementation is not as comfortable to work with any more. Then you should change it to something more versatile. About using the new ItemActions I'll update the answer. | |
Mar 8, 2018 at 15:00 | history | edited | Leo | CC BY-SA 3.0 |
Formatting
|
Mar 8, 2018 at 14:51 | history | edited | Leo | CC BY-SA 3.0 |
added 5 characters in body
|
Mar 8, 2018 at 14:43 | comment | added | Daniel Lip | Great idea. Could you show me please example of how to use it with my code the DetectInteractable script ? Should I keep using the ItemInformation and the way I'm searching for ItemInformation or should I use for action and text better with your solution ? | |
Mar 8, 2018 at 12:10 | history | answered | Leo | CC BY-SA 3.0 |