public PositionedJob(Vector3 position, float scale, Color color, Overlay jobOverlay, string jobType) { Position = position; _jobType = jobType; Marker = ObjectPool.Instance.GetObjectForType <JobMarker>(parent: OverlayManager.GetOverlay(jobOverlay)); Marker.Init(position, scale, color); RemainingTime = 1f; }
//setup skill public void Setup() { GameWorld.Add(this); OverlayManager overlay = GameWorld.GetObject("overlay") as OverlayManager; Overlay hud = overlay.GetOverlay("hud") as Overlay; //add timer to the hud overlay hud.Add(timer); }
public void PlayerSetup() { OverlayManager overlay = GameWorld.GetObject("overlay") as OverlayManager; Overlay hud = overlay.GetOverlay("hud") as Overlay; hud.Add(skill1); hud.Add(skill2); hud.Add(skill3); }