// Use this for initialization
 void Start()
 {
     HadPopUp = false;
     UIMan    = FindObjectOfType <UIManager>();
     SPW      = FindObjectOfType <SpawnPositionManager>();
     hover.SetActive(false);
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     HadPopUp = false;
     PS       = FindObjectOfType <PlayerStats>();
     UIMan    = FindObjectOfType <UIManager>();
     SPW      = FindObjectOfType <SpawnPositionManager>();
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     HadPopUp = false;
     PS       = FindObjectOfType <PlayerStats>();
     UIMan    = FindObjectOfType <UIManager>();
     SPW      = FindObjectOfType <SpawnPositionManager>();
     //hover= GameObject.Find ("SHOPPING");
     hover.SetActive(false);
 }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        SConfirm = false;

        limit = 8;

        isReset           = false;
        falselevel        = 1;
        LevelEarn         = false;
        currentLevel      = 1;
        currentLevelFalse = 1;
        isFirstTime       = true;
        PV         = FindObjectOfType <PlayerMovement>();
        HadConfirm = true;
        isActive   = false;

        HPNoNull      = 0;
        ATQNoNull     = 0;
        STAMINANoNull = 0;
        RESNoNull     = 0;
        LUCKNoNull    = 0;
        SPEEDNoNull   = 0;

        HPLegit      = 0;
        ATQLegir     = 0;
        STAMINALegit = 0;
        RESLegit     = 0;
        LUCKLegit    = 0;
        SPEEDLegit   = 0;

        PSAuxliarBool = true;

        currentSpeed = 8;
        //LV.SetActive (false); ESTO SE TIEWNE QUE ACTIVAR CUANDO LEVEL UP
        currentStamina = staminaLevels [currentLevel];
        currentHP      = HPLevels [currentLevel];
        currentAttack  = attacksLevels [currentLevel];
        currentDefense = defenseLevels [currentLevel];
        Points         = 0; //tENGO QUE SACAR ESTO
        FalsePoints    = 0;
        theH           = FindObjectOfType <Health>();
        theS           = FindObjectOfType <Stamina>();
        SPM            = FindObjectOfType <SpawnPositionManager>();
    }
Ejemplo n.º 5
0
 void Start()
 {
     SPW = FindObjectOfType <SpawnPositionManager>();
 }
Ejemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        pause       = FindObjectOfType <PauseManager> ();
        statsButton = GameObject.Find("statsButton");
        SConfirm    = false;

        limit = 8;

        isReset           = false;
        falselevel        = 1;
        currentLevel      = 1;
        currentLevelFalse = 1;
        isFirstTime       = true;
        SM         = FindObjectOfType <ShopManager>();
        PV         = FindObjectOfType <PlayerMovement>();
        GM         = FindObjectOfType <GoldManager>();
        HadConfirm = true;
        isActive   = false;

        HPNoNull      = 1;
        ATQNoNull     = 1;
        STAMINANoNull = 1;
        RESNoNull     = 1;
        LUCKNoNull    = 1;
        SPEEDNoNull   = 1;

        HPLegit      = 1;
        ATQLegir     = 1;
        STAMINALegit = 1;
        RESLegit     = 1;
        LUCKLegit    = 1;
        SPEEDLegit   = 1;

        PSAuxliarBool = true;

        currentSpeed = 8;
        //LV.SetActive (false); ESTO SE TIEWNE QUE ACTIVAR CUANDO LEVEL UP
        //if (Application.loadedLevelName != "escena2") {
        currentStamina = staminaLevels [currentLevel];
        currentHP      = HPLevels [currentLevel];
        currentAttack  = attacksLevels [currentLevel];
        currentDefense = defenseLevels [currentLevel];
        //}

        /*Points = 0; //tENGO QUE SACAR ESTO
         * FalsePoints = 0;*/
        theH = FindObjectOfType <Health>();
        theS = FindObjectOfType <Stamina>();
        SPM  = FindObjectOfType <SpawnPositionManager>();
        SG   = FindObjectOfType <SaveGame>();

        Count = new int[6];
        for (int i = 0; i < Count.Length; i++)
        {
            Count [i] = 0;
        }

        FalseCount = new int[6];
        for (int i = 0; i < FalseCount.Length; i++)
        {
            FalseCount [i] = 0;
        }
        loadStats();
        LV.SetActive(false);
    }
Ejemplo n.º 7
0
 void Start()
 {
     SPW = FindObjectOfType <SpawnPositionManager>();
     PS  = FindObjectOfType <PlayerStats>();
     AS  = GameObject.Find("DoorSound").GetComponent <AudioSource>();
 }
Ejemplo n.º 8
0
 private void Awake()
 {
     instance = this;
 }