// Use this for initialization void Start() { gameObject.name = this.name; gameObject.tag = "Enemy"; combatController = GameObject.Find("CombatController"); combatControllerScript = combatController.GetComponent <CombatControllerScript>(); calculateStats(); RollInitiative(); }
// Use this for initialization void Start() { gameObject.name = this.name; gameObject.tag = "Player"; combatController = GameObject.Find("CombatController"); combatControllerScript = combatController.GetComponent <CombatControllerScript>(); calculateStats(); RollInitiative(); //Debug.Log(classes[0].name+ " " + classes[0].lvl); }
void Start() { combatController = GameObject.Find("CombatController"); combatControllerScript = combatController.GetComponent <CombatControllerScript>(); combatControllerScript.setMap(map, mapSize); GenerateMap(); InstantiatePlayers(); InstantiateEnemies(); InstantiateCursor((int)mapSize.x / 2, (int)mapSize.y / 2); cursor = GameObject.Find("Cursor(Clone)"); cursorScript = cursor.GetComponent <CursorController>(); combatControllerScript.setCursor(cursor, cursorScript); }
// Use this for initialization void Start() { Debug.Log("START CURSOR"); map = GameObject.Find("Map"); mapGeneratorScript = map.GetComponent <MapGenerator>(); mapSize = mapGeneratorScript.getMapSize(); combatController = GameObject.Find("CombatController"); combatControllerScript = combatController.GetComponent <CombatControllerScript>(); cursorCoords = combatControllerScript.getCursorCoords(); //cursorScript = this.GetComponent<CursorController>(); //Debug.Log (cursorScript.currentState); //CombatControllerScript.UpdateCursorStatus(cursorScript); SetStateIdle(); }