Join Dan Violet Sagmiller for an in-depth discussion in this video Actions manager, part of Unity 5: Build a Real-Time Strategy Game.
- View Offline
- Exercise Files
- [Voiceover] Units should have actions they can do…whether that's moving or building or whatever.…We'll need an action system that can handle…different numbers of actions.…For now, we'll just create code to manage the actions panel.…So if I run the code, we can see the action panels…has nine buttons in it.…We want to be able to set what those buttons are going to be…and what they'll do.…To do that I'm gonna stop the code, enter the scripts folder…and then I'll create a script called actions manager.…Now I'll edit it.…
Now I know I'll be working with UI elements.…So I'm going to add a using statement for it,…using UnityEngine.UI.…(keyboard keys tapping)…Additionally, I'll be using generic lists…so I'm going to extend collections with generic right away.…Finally, I'm gonna be using something called an action.…An action is basically a method that's been turned…into a variable so you can pass it around.…We get that from using system.…Now since this is one of the managers of our code,…I'm gonna want easy access to it.…
AuthorDan Violet Sagmiller
- Adding player positions and start info
- Loading prebuilt levels
- Adding camera moves
- Adding a unit
- Supporting navigation
- Adding unit owners and player objects
- Importing and setting up a HUD map
- Adding unit info and credits
- Creating HUD actions
- Building a command base
- Adding artificial intelligence
- Adding battle actions
Skill Level Intermediate
Unity 5 2D Essential Training (2015)with Jesse Freeman3h 22m Intermediate
1. Initial Setup
2. Adding a Unit
3. Navigation Mesh
4. Unit Owner
5. HUD Map
6. Unit Info & Credits
7. HUD Actions
8. Command Base
9. Base AI
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.