void Start()
    {
        xp = XP.FindObjectOfType <XP> ();

        selectorEnemy1 = SelectEnemyScript.FindObjectOfType <SelectEnemyScript> ();
        selectorEnemy2 = SelectEnemy2Script.FindObjectOfType <SelectEnemy2Script> ();

        animator = statusTextPanel.GetComponent <Animator> ();

        music = Music.FindObjectOfType <Music> ();

        //TURN THIS OFF WHEN BUILDING
        //music.BattleClip ();

        enemyFlee  = false;
        playerFlee = false;

        attackPoints = PlayerPrefs.GetInt("PLAYER_AP");

        playerController = PlayerAttackScriptMultipleEnemies.FindObjectOfType <PlayerAttackScriptMultipleEnemies>();

        xp.UpdateDisplay();

        playerTurn = true;
    }
Esempio n. 2
0
    void Start()
    {
        playerSpeed = GoingToShipAfterBattleScript.FindObjectOfType <GoingToShipAfterBattleScript> ();

        thankYouText.SetActive(false);

        credits = XP.FindObjectOfType <XP> ();
    }
 void Start()
 {
     justWon = false;
     //smoke.SetActive(false);
     //bigExplosion.SetActive(false);
     levelmanager     = LevelManager.FindObjectOfType <LevelManager>();
     battlecontroller = BattleControllerTurnBased.FindObjectOfType <BattleControllerTurnBased>();
     playercontroller = RTSBattleController.FindObjectOfType <RTSBattleController>();
     takeAwayEnemy    = PlayerPrefs.GetInt("NGC1300NUMBER_OF_ENEMIES") - 1;
     xp = XP.FindObjectOfType <XP>();
 }
 void Start()
 {
     playerShipTarget = PlayerShip.GetComponent <Transform> ();
     playerAccuracy   = PlayerPrefs.GetFloat("GUNNER") + 50f;
     deflectorDamage  = PlayerPrefs.GetFloat("DEFLECTORS");
     justWon          = false;
     //smoke.SetActive(false);
     //bigExplosion.SetActive(false);
     levelmanager     = LevelManager.FindObjectOfType <LevelManager>();
     battlecontroller = BattleControllerTurnBased.FindObjectOfType <BattleControllerTurnBased>();
     playercontroller = RTSBattleController.FindObjectOfType <RTSBattleController>();
     takeAwayEnemy    = PlayerPrefs.GetInt("NGC1300NUMBER_OF_ENEMIES") - 1;
     xp = XP.FindObjectOfType <XP>();
 }
    void Start()
    {
        transform.LookAt(PlayerShip.transform.position);


        playerShipTarget = PlayerShip.GetComponent <Transform> ();

        playerAccuracy = PlayerPrefs.GetFloat("GUNNER") + 50f;

        deflectorDamage = PlayerPrefs.GetFloat("DEFLECTORS");

        levelmanager = LevelManager.FindObjectOfType <LevelManager>();

        battlecontroller = BattleControllerTurnBasedMultipleScript.FindObjectOfType <BattleControllerTurnBasedMultipleScript>();

        playerController = PlayerAttackScriptMultipleEnemies.FindObjectOfType <PlayerAttackScriptMultipleEnemies>();

        xp = XP.FindObjectOfType <XP> ();
    }
Esempio n. 6
0
 void Start()
 {
     getCredits = XP.FindObjectOfType <XP> ();
 }