Exemplo n.º 1
0
    public virtual void Start()
    {
        healthbar = HealthbarManager.CreateHealthbar();

        if (turret)
        {
            _turret = turret.GetComponent <IAimable> ();
        }
    }
Exemplo n.º 2
0
    public UnityWorldRenerer(SpriteRenderer entityObjectPrefab, Transform worldTransform, Dictionary <string, Sprite> spriteRegistry, int positionUnitsPerUnityUnit, HealthbarManager hpMan, ItemComparer itemComp)
    {
        this.entityObjectPrefab        = entityObjectPrefab;
        this.worldTransform            = worldTransform;
        this.spriteRegistry            = spriteRegistry;
        this.positionUnitsPerUnityUnit = positionUnitsPerUnityUnit;
        this.hpMan           = hpMan;
        this.itemComp        = itemComp;
        currentlyUsedObjects = new Dictionary <int, SpriteRenderer>();

        unusedObjects = new Stack <SpriteRenderer>();
    }
Exemplo n.º 3
0
 private void Awake()
 {
     Instance = this;
 }
Exemplo n.º 4
0
 private void Awake()
 {
     healthbarManager = this;
 }