void Start() { x = transform.position.x; y = transform.position.z; tilemap = GameObject.Find("_GLOBAL_SCRIPTS").GetComponent<_TILEMAP>(); particles = GameObject.Find("_GLOBAL_SCRIPTS").GetComponent<particle_script>(); gamecamera = GameObject.Find("Main Camera").GetComponent<camera_script>(); player_model = transform.FindChild("head").gameObject; id = tilemap.add_to_object_list(x, y, PLAYER_RADIUS); Debug.Log("kljladjhslöfkjasödlf id="+id); tilemap.set_player_id(id); gamecamera.set_camera_target(x, y, true); }
/// /////////////////////////////////////////////////////////////////////////// void Start() { x = transform.position.x; y = transform.position.z; model = transform.FindChild("enemy_model_parent"); //model_material = model.gameObject.GetComponent<Renderer>().material; tilemap = GameObject.Find("_GLOBAL_SCRIPTS").GetComponent<_TILEMAP>(); radar = gameObject.GetComponent<radar_script>(); id = tilemap.add_to_object_list(x, y, ENEMY_RADIUS); bt = GameObject.Find("Tree").GetComponent<tree_script>(); graphics = model.gameObject.GetComponent<enemy_graphics_script>(); search_sequence.running_child = 0; search_sequence.current_state = State.FAILURE; open_nodes = new List<general_node>(); }
void Start() { x = (int)transform.position.x; y = (int)(-transform.position.z); get_type_of_this_tile(); move_timer = 0.0f; tilemap = GameObject.Find("_GLOBAL_SCRIPTS").GetComponent<_TILEMAP>(); id = tilemap.add_to_pushable_list(x, y, type, gameObject.GetComponent<pushable_tile_script>()); model = transform.FindChild("Cube"); }
void Start() { Canvas.gameObject.SetActive(true); for (int i = 0; i < Panels.Length; i++) { Panels[i].gameObject.SetActive(false); } Panels[0].gameObject.SetActive(true); //EventSystem.current.SetSelectedGameObject(GameObject.Find("StartButton")); for (int i = 0; i < LevelButtons.Length; i++) { LevelButtons[i].interactable = false;//gameObject.SetActive(false); } UnlockLevels (LevelsUnlocked); tilemap = GameObject.Find("_GLOBAL_SCRIPTS").GetComponent<_TILEMAP>(); }
void Start() { tilemap = GameObject.Find("_GLOBAL_SCRIPTS").GetComponent<_TILEMAP>(); for (int a = 0; a < NUMBER_OF_RAYS + 1; a++) { GameObject line = (GameObject)Instantiate(radar_line, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity); line.transform.SetParent(transform); lines[a] = line.GetComponent<LineRenderer>(); lines[a].SetPosition(0, new Vector3(0.0f, 0.0f, 0.5f)); lines[a].SetPosition(1, new Vector3(0.0f, 0.0f, 0.8f)); } }
void Start() { tilemap = GameObject.Find("_GLOBAL_SCRIPTS").GetComponent<_TILEMAP>(); particles = GameObject.Find("_GLOBAL_SCRIPTS").GetComponent<particle_script>(); initialize_lasers(); }
void Start() { tilemap = GameObject.Find("_GLOBAL_SCRIPTS").GetComponent<_TILEMAP>(); tilemap.start_game(); Destroy(gameObject); }