public void Init(MovableParams parameters) { col = GetComponent <Collider2D>(); anim = GetComponent <DestroyAnim>(); myParams = parameters; initialized = true; weight.text = myParams.strength.val.ToString("F1"); }
private void Start() { for (int i = 0; i < lifePoints.Points; i++) { DestroyAnim anim = Instantiate(heartContainer, transform).GetComponent <DestroyAnim>(); destroyAnims.Push(anim); } LifePoints.onPlayerHit += RemoveHeart; }