コード例 #1
0
    void StartEnemyTurn()
    {
        if (PlayerPrefs.GetString("WHOS_ATTACKING") == "NGC1300BOSS")
        {
            EnemyFIreAndDamageBoss enemycontroller = EnemyFIreAndDamageBoss.FindObjectOfType <EnemyFIreAndDamageBoss> ();
            enemycontroller.EnemyTurn();
        }
        if (PlayerPrefs.GetString("WHOS_ATTACKING") == "ShipSmallGreyDefault")
        {
            EnemyFireAndDamage enemycontroller = EnemyFireAndDamage.FindObjectOfType <EnemyFireAndDamage>();
            enemycontroller.EnemyTurn();
        }
        if (PlayerPrefs.GetString("WHOS_ATTACKING") == "QuantumDefault")
        {
            EnemyFireAndDamage enemycontroller = EnemyFireAndDamage.FindObjectOfType <EnemyFireAndDamage>();
            enemycontroller.EnemyTurn();
        }
        statusText.text = "Enemy Turn, Prepare Yourself!";

        if (hasDoneAnimation == 1)
        {
//			animator.SetTrigger ("nextTurn");

            aimingReticle.SetActive(false);

            hasDoneAnimation = 0;
        }

        //enemycontroller.EnemyTurn();
    }
コード例 #2
0
    void Start()
    {
        //chanceOfDipolomacyWorking = 5;

        Text yourDialog = GetComponent <Text> ();

        Text yourAnswer1 = GetComponent <Text> ();

        Text yourAnswer2 = GetComponent <Text> ();

        Text yourAnswer3 = GetComponent <Text> ();

        Text enemyDialog = GetComponent <Text> ();

        yourAnswerPanel1.SetActive(false);

        yourAnswerPanel2.SetActive(false);

        yourAnswerPanel3.SetActive(false);

        diplomacyPanel.SetActive(false);

        yourDialogPanel.SetActive(false);

        enemyDialogPanel.SetActive(false);

        enemyScript = EnemyFireAndDamage.FindObjectOfType <EnemyFireAndDamage> ();
    }
コード例 #3
0
    void Start()
    {
        singleFight = SingleFightScriptPlace.FindObjectOfType <SingleFightScriptPlace> ();



        if (singleFight != null)
        {
            enemyHealthSingleFight = EnemyFireAndDamage.FindObjectOfType <EnemyFireAndDamage> ();

            enemyHealthHere = enemyHealthSingleFight.EnemyHealth;
        }

        if (singleFight == null)
        {
            enemyHealthMultipleFight = TwoEnemiesAttackingScript.FindObjectOfType <TwoEnemiesAttackingScript> ();

            enemyHealthHere = enemyHealthMultipleFight.EnemyHealth;
        }
    }