// Use this for initialization void Start() { ecZ = GetComponent<Enemy_ControllerZ>(); at_para = Bullet.GetComponent<Attack_Parameter>(); animator = GetComponentInChildren<Animator>(); Player = GameObject.FindWithTag ("Player").transform; }
// Use this for initialization void Start() { guiText = this.GetComponent<Text>(); switch(type){ case Text_Type.Day: _static = GameObject.FindGameObjectWithTag("Manager").GetComponent<Static>(); if (_static.day - (int)_static.day == 0.5f) { guiText.text = (int)_static.day + "日目 夜"; } else { guiText.text = (int)_static.day + "日目 昼"; } break; case Text_Type.LP: _static = GameObject.FindGameObjectWithTag("Manager").GetComponent<Static>(); guiText.text = "名声 " + _static.lank_P; break; case Text_Type.BP: _static = GameObject.FindGameObjectWithTag("Manager").GetComponent<Static>(); guiText.text = "BP " + _static.bonus_P; break; case Text_Type.HP: pcZ = GameObject.FindGameObjectWithTag ("Player").GetComponent<Player_ControllerZ>(); break; case Text_Type.MP: pcZ = GameObject.FindGameObjectWithTag ("Player").GetComponent<Player_ControllerZ>(); break; case Text_Type.Magic: mc = GameObject.FindGameObjectWithTag("Player").GetComponent<Magic_Controller>(); break; case Text_Type.Enemy: ecZ = GameObject.Find("Boss_DarkLilith").GetComponent<Enemy_ControllerZ>(); break; default: break; } }
// Use this for initialization void Start() { ecZ = GetComponent<Enemy_ControllerZ>(); MS = GetComponent<MoveSmooth>(); animator = GetComponentInChildren<Animator>(); priority = 6;//最初はサーチに //Player = GameObject.FindWithTag("Player").transform; }
// Use this for initialization void Start() { Player = GameObject.FindGameObjectWithTag("Player"); animator = GetComponentInChildren<Animator>(); ecZ = GetComponent<Enemy_ControllerZ>(); Block_C = GameObject.FindObjectOfType<Block_Controller>(); CurrentPlace = this.transform; coroutine = StartCoroutine ("Road"); }
// Use this for initialization void Start() { ecZ = GetComponent<Enemy_ControllerZ>(); MS = GetComponent<MoveSmooth>(); animator = GetComponentInChildren<Animator>(); //SE = GetComponent<AudioSource>(); CCZ = Camera.main.gameObject.GetComponent<Camera_ControllerZ>(); priority = 5;//最初はサーチに oldpos = transform.position; }
// Use this for initialization void Start() { ecZ = GetComponent<Enemy_ControllerZ>(); }
// Use this for initialization void Start() { ecZ = GetComponentInParent<Enemy_ControllerZ>(); Player = GameObject.FindGameObjectWithTag("Player"); }
void Start() { ecZ = Parent.GetComponent<Enemy_ControllerZ>(); Renderer = Model.GetComponentsInChildren<MeshRenderer>(); SkinRenderer = Model.GetComponentsInChildren<SkinnedMeshRenderer>(); }
// Use this for initialization void Start() { ecZ = GetComponent<Enemy_ControllerZ>(); MS = GetComponent<MoveSmooth>(); animator = GetComponentInChildren<Animator>(); SE[0] = GetComponent<AudioSource>(); CCZ = Camera.main.gameObject.GetComponent<Camera_ControllerZ>(); priority = 5;//最初はサーチに }