コード例 #1
0
        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;
        }
コード例 #2
0
 public void FoldParachute(BonusTakenEvent e, BonusWithParachuteNode bonus)
 {
     bonus.Entity.AddComponent <BonusParachuteFoldingStateComponent>();
 }