Example #1
0
    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;
        }
    }
Example #2
0
    private void OnTriggerExit2D(Collider2D collision)
    {
        ArmManager armManager = collision.gameObject.GetComponent <ArmManager>();

        if (null != armManager)
        {
            armManager.PotentialIngredientExit(this);
        }
    }
Example #3
0
        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);
        }
Example #4
0
    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;
        }
    }
Example #5
0
        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();
        }
Example #6
0
 private void Awake()
 {
     amInstance = this;
 }
        public override async Task RunAsync()
        {
            await ArmManager.LoginAsync();

            await PrintAccountsAsync();
        }