// Use this for initialization void Start() { GameObject managerObj = GameObject.Find("Manager"); manager = managerObj.GetComponent<ManagerSystem>(); dijSys = managerObj.GetComponent<DijkstraSystem>(); assist = managerObj.GetComponent<PlayerAssistanceSystem>(); abilSys = managerObj.GetComponent<AbilitySystem>(); selectedCell = selectedMovementCell = null; changedSelectedCell = changedSelectedMovementCell = false; rotationScript = (CameraRotationScript)FindObjectOfType (typeof(CameraRotationScript)); }
// Use this for initialization void Start() { player1 = GameObject.Find("Player1"); player2 = GameObject.Find("Player2"); managerSys = GameObject.Find("Manager").GetComponent<ManagerSystem>(); inventSys = GameObject.Find("Manager").GetComponent<InventorySystem>(); player1AP = player1.GetComponent<PlayerComponent>().actionPoints; player2AP = player2.GetComponent<PlayerComponent>().actionPoints; //test angaben isPlayer1 = managerSys.getPlayerTurn(); //setStyle style = new GUIStyle(); dijkstra = (DijkstraSystem)FindObjectOfType(typeof(DijkstraSystem)); if (isPlayer1) input = player1.GetComponent<inputSystem>(); else input = player2.GetComponent<inputSystem>(); figureUpdate(); }
// Use this for initialization void Start() { secondsPerCell = 0.5f; dijkstra = (DijkstraSystem)FindObjectOfType(typeof(DijkstraSystem)); playerAttr = (AttributeComponent)this.gameObject.GetComponent(typeof(AttributeComponent)); startAngleSet = false; }
// Use this for initialization void Start() { rounds = 0; isPlayer1 = true; player1 = GameObject.Find("Player1"); player2 = GameObject.Find("Player2"); player2.GetComponent<inputSystem>().enabled = false; cam = GameObject.Find("Main Camera").GetComponent<CameraRotationScript>(); shootingSys = (ShootingSystem)this.gameObject.GetComponent(typeof(ShootingSystem)); dijkstra = FindObjectOfType<DijkstraSystem>(); plane = GameObject.Find("Plane"); }
// Use this for initialization void Start() { dij = (DijkstraSystem)FindObjectOfType(typeof(DijkstraSystem)); }