void getAbilities() { try { basicMoveMent = this.GetComponentInChildren <IBasicMoveMent>(); basicMoveMent.enableAbility(this); basicMoveMent.activate(); } catch { } try { rotateArm = this.GetComponentInChildren <IRotateArm>(); rotateArm.enableAbility(this); rotateArm.deactivate(); } catch { } try { grapple = armController.GetComponentInChildren <IGrapple>(); grapple.enableAbility(this); } catch { } try { landHit = this.GetComponentInChildren <ILandHit>(); } catch { } try { slimeArm = armController.GetComponent <ISlimeArm>(); slimeArm.enableAbility(this); Debug.Log(slimeArm); } catch { Debug.LogError("No SlimeArm"); } try { teleporte = this.GetComponentInChildren <ITeleporte>(); } catch { } try { chargeArm = this.GetComponentInChildren <IChargeArm>(); } catch { } }
internal Truck(string truckName, IGrapple grapple) { Log.Write($"Setting Up the Truck {truckName}"); _truckName = truckName; _grapple = grapple; Init(); }
internal Truck(string truckName, IGrapple grapple) { Log.Write($"Setting Up the Truck {truckName}"); _truckName = truckName; _grapple = grapple; CreateDeliveryFolder(TruckPosition); }
/// <summary> /// /// </summary> /// <param name="truckName"></param> public Truck(string truckName, SerializationOption serializationOption = SerializationOption.Binary) { _truckName = truckName; if (serializationOption == SerializationOption.Binary) { _grapple = new BinaryGrapple(new DefaultSerializer()); } else { _grapple = new BinaryGrapple(new JsonSerializer()); } Init(); }