public void PrepareParachuteData(NodeAddedEvent e, BonusWithParachuteNode bonus) { BonusDataComponent bonusData = bonus.bonusData; bonusData.ParachuteHalfHeight = bonus.bonusParachuteInstance.BonusParachuteInstance.GetComponentInChildren <Renderer>().bounds.size.y * 0.5f; bonusData.SwingPivotY = bonusData.BoxHeight + bonusData.ParachuteHalfHeight; }
public void FoldParachute(BonusTakenEvent e, BonusWithParachuteNode bonus) { bonus.Entity.AddComponent <BonusParachuteFoldingStateComponent>(); }