This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Player { | |
| //Properties | |
| PImage img; //sprite normal | |
| float posX, posY, tam, vel, health, dmg; | |
| int level; | |
| int counterB = 0; | |
| boolean moveUp, moveDown, moveLeft, moveRight, moveUnLock; //booleanas para controlar o movimento do player | |
| public ArrayList<Bullets> b1; //bullets | |
| //Constructor | |
| Player(String n, float x, float y) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void CheckBattery() | |
| { | |
| //if (menuPanel.activeSelf) | |
| //{ | |
| //playername.text = PlayerPrefs.GetString("Name"); | |
| if (battery == BatteryStatus.Charging) batteryimg.sprite = Resources.Load<Sprite>("bateriaCharging"); | |
| else if (battery == BatteryStatus.Discharging) batteryimg.sprite = Resources.Load<Sprite>("bateriaDischarging"); | |
| else batteryimg.sprite = Resources.Load<Sprite>("bateriaFull"); | |
| //} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class Redimension : MonoBehaviour | |
| { | |
| private float lastWidth; | |
| private float lastHeight; | |
| void Start() |