public override void Awake() { base.Awake(); instance = this; GameObject itemsParentGO = new GameObject() { name = "ItemsParent" }; itemsParent = itemsParentGO.transform; itemsParent.parent = transform; itemsParent.localPosition = Vector3.zero; }
protected override async Task <Action <AsyncCodeActivityContext> > ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken) { // Object Container: Use objectContainer.Get<T>() to retrieve objects from the scope var objectContainer = context.GetFromContext <IObjectContainer>(TwilioApiScope.ParentContainerPropertyTag); // Inputs var countrycode = CountryCode; var accountsid = AccountSid.Get(context); var areacode = AreaCode.Get(context); var smsenabled = SmsEnabled.Get(context); var mmsenabled = MmsEnabled.Get(context); var voiceenabled = VoiceEnabled.Get(context); var faxenabled = FaxEnabled.Get(context); var contains = Contains.Get(context); var beta = Beta.Get(context); var nearnumber = NearNumber.Get(context); var nearlatlong = NearLatLong.Get(context); var distance = Distance.Get(context); var inpostalcode = InPostalCode.Get(context); var inregion = InRegion.Get(context); var inratecenter = InRateCenter.Get(context); var inlata = InLata.Get(context); var inlocality = InLocality.Get(context); var excludealladdressrequired = ExcludeAllAddressRequired.Get(context); var excludelocaladdressrequired = ExcludeLocalAddressRequired.Get(context); var excludeforeignaddressrequired = ExcludeForeignAddressRequired.Get(context); var limit = Limit.Get(context); var numbers = await AvailableMobilePhoneNumbersWrappers.GetAvailableMobilePhoneNumberAsync( objectContainer.Get <ITwilioRestClient>(), countrycode, accountsid, areacode, smsenabled, mmsenabled, faxenabled, voiceenabled, beta, contains, inlata, nearlatlong, nearnumber, distance, inlocality, inpostalcode, inratecenter, inregion, excludealladdressrequired, excludeforeignaddressrequired, excludelocaladdressrequired, limit); // Outputs return((ctx) => { PhoneNumbers.Set(ctx, numbers); }); }