void addNewTexts() { int nArms = enemy.armList.Count; string enemyName = "<b><size=35>" + enemy.enemyName + "</size></b>\n"; addNewText(enemyName + CoreManager.getCoreDescription(enemy.currentCore), new Vector2(0, 70)); switch (nArms) { case 2: addNewText(ArmManager.getArmDescription(enemy.armList[0], enemy.armAspects[0]), new Vector2(-525, 70)); addNewText(ArmManager.getArmDescription(enemy.armList[1], enemy.armAspects[1]), new Vector2(525, 70)); break; case 4: addNewText(ArmManager.getArmDescription(enemy.armList[0], enemy.armAspects[0]), new Vector2(-525, 190)); addNewText(ArmManager.getArmDescription(enemy.armList[1], enemy.armAspects[1]), new Vector2(525, 190)); addNewText(ArmManager.getArmDescription(enemy.armList[2], enemy.armAspects[2]), new Vector2(-525, -190)); addNewText(ArmManager.getArmDescription(enemy.armList[3], enemy.armAspects[3]), new Vector2(525, -190)); break; case 6: case 8: addNewText(ArmManager.getArmDescription(enemy.armList[0], enemy.armAspects[0]), new Vector2(-525, 70)); break; } }
private void OnTriggerExit2D(Collider2D collision) { ArmManager armManager = collision.gameObject.GetComponent <ArmManager>(); if (null != armManager) { armManager.PotentialIngredientExit(this); } }
public async Task GetSubscriptions() { var client = AzureClientFactory.GetAzureClient(); var authHelper = AzureClientFactory.GetAuthHelper(); var settings = Substitute.For <ISettings>(); var armManager = new ArmManager(authHelper, client, settings); var subscriptions = await armManager.GetSubscriptionsAsync(); subscriptions.Should() .HaveCount(2); }
void Start() { head = GameObject.FindObjectOfType <GiantHeadBehaviour>(); playerController = GameObject.FindObjectOfType <PlayerController>(); manager = GameObject.FindObjectOfType <GameManager>(); rigidBody = GetComponent <Rigidbody2D>(); gumController = GetComponentInParent <GumController>(); armManager = GameObject.FindObjectOfType <ArmManager>(); if (GameManager.looseTeeth < GameManager.maxLooseTeeth && Random.value <= randomLooseChance) { isLooseTooth = true; GameManager.looseTeeth += 1; } }
public override async Task RunAsync() { var tenants = ArmManager.GetTenants(); var validSub = tenants .Select(t => t.subscriptions) .SelectMany(s => s) .Any(s => s.subscriptionId.Equals(Subscription)); if (validSub) { Settings.CurrentSubscription = Subscription; } else { ColoredConsole.Error.WriteLine($"Unable to find ${Subscription}"); } await PrintAccountsAsync(); }
private void Awake() { amInstance = this; }
public override async Task RunAsync() { await ArmManager.LoginAsync(); await PrintAccountsAsync(); }