public TestView(battleController controller) { InitializeComponent(); this.controller = controller; turn_progress = new turnBackgroundWorker(new BackgroundWorker(), new turnTimingBar(turn_timing_bar)); this.console = new consoleWindow(console_window); this.timeline = new timelineWindow(timeline_window); this.combatants = new combatantsWindow(combatant_window); this.attack_button = new AttackButton(AttackButton); }
// Use this for initialization void Start() { pokemonPlayer = FindObjectOfType(typeof(pokemonPlayer)) as pokemonPlayer; battleController = FindObjectOfType(typeof(battleController)) as battleController; barraHP = GameObject.Find("HP_Inimigo").transform; pv = pvMax; percentualVida = pv / pvMax; vector3 = barraHP.localScale; vector3.x = percentualVida; barraHP.localScale = vector3; }
// Use this for initialization void Start() { actionTimer = 0f; int numSkills = charaStatus.availSkills.Count; availSkills = new skillData[numSkills]; skillUseRate = new float[numSkills]; skillTimers = new float[numSkills]; availSkills = charaStatus.availSkills.ToArray(); skillUseRate = charaStatus.skillUseRate.ToArray(); skillTimers = charaStatus.skillTimers.ToArray(); battleController = GameObject.Find("gameController").GetComponent <battleController>(); }
static void Main() { TestAll turnTester = new TestAll(); turnTester.run_tests(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); BattleArena battle = new BattleArena(); battleController controller = new battleController(battle); //, view); TestView view = new TestView(controller); //, battle); Application.Run(view); }
// Use this for initialization void Start() { pokemonInimigo = FindObjectOfType(typeof(pokemonInimigo)) as pokemonInimigo; battleController = FindObjectOfType(typeof(battleController)) as battleController; pv = pvMax; barraHP = GameObject.Find("HP_Player").transform; barraXP = GameObject.Find("XP_Player").transform; percentual = pv / pvMax; vector3 = barraHP.localScale; vector3.x = percentual; barraHP.localScale = vector3; percentual = xp / 100; vector3 = barraXP.localScale; vector3.x = percentual; barraXP.localScale = vector3; }
// Use this for initialization void Start() { // data = GameObject.FindGameObjectWithTag("data").GetComponent<dataContainer>(); masterList = GetComponentInChildren <masterListController>(); timeController = GameObject.Find("TimeController").GetComponent <timeController>(); weatherController = GetComponent <weatherController>(); cameraController = GameObject.Find("Camera").GetComponent <cameraController>(); mapController = GetComponent <mapController>(); battleController = GetComponent <battleController>(); currentParty = new GameObject[maxPartySize]; loadCharas(); // playerController = GameObject.FindGameObjectWithTag("Player").GetComponent<playerController>(); // inventoryController = GetComponent<inventoryController>(); // loadInventory(); // // objectController = GameObject.Find("objectController").GetComponent<objectController>(); // itemController = GameObject.Find("itemController").GetComponent<itemController>(); // enemyController = GameObject.Find("enemyController").GetComponent<enemyController>(); menu.SetActive(false); playerController.isControllable = true; cameraController.isControllable = true; }