示例#1
0
 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;
 }
示例#2
0
文件: Skill.cs 项目: nasr250/Valkan
    //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);
    }
示例#3
0
    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);
    }