// Start is called before the first frame update void Start() { currentHealth = initialHealth; playerMaterial = GetComponent <SpriteRenderer>().material; invulnerabilityTimer = 50000; ship = GetComponent <SpaceshipHandler>(); healthRing = HealthRing.GetComponent <Image>(); shieldRing = ShieldRing.GetComponent <Image>(); }
private int walkcycleSpeed = 75; // per nth millisecond (adjusted locally) #endregion Fields #region Constructors public Hero() { shipHandler = new SpaceshipHandler(this); //bossHandler = new BossHandler(this); }