// Start is called before the first frame update void Start() { StartCoroutine(Shoot_Loop()); player = GameObject.FindWithTag(playerObjectName); playerScript = (MovementScript)player.GetComponent(typeof(MovementScript)); spawnScript = (Spawn_Enemy)player.GetComponent(typeof(Spawn_Enemy)); }
// Start is called before the first frame update void Start() { StartCoroutine(Jump_Loop()); player = GameObject.FindWithTag(playerObjectName); playerScript = (MovementScript)player.GetComponent(typeof(MovementScript)); spawnScript = (Spawn_Enemy)player.GetComponent(typeof(Spawn_Enemy)); anim.SetBool("Moving", true); }
// Use this for initialization void Start() { se = GameObject.FindGameObjectWithTag("Sprite").GetComponent <Spawn_Enemy>(); charcontroller = GameObject.FindGameObjectWithTag("Sprite").GetComponent <char_CTRL>(); health = 5; touch_fence = false; touch_c_fence = false; speed = .2f; distance = 4; anime = this.GetComponent <Animator>(); has_bullet = true; touch_ground = false; facing_left = true; player = GameObject.FindGameObjectWithTag("Sprite"); InvokeRepeating("shoot", 2, 5); shooting = true; }
// Use this for initialization void Start() { touch_fence = false; touch_c_fence = false; touch_boss = false; boss_punched = false; Sp_en = gameObject.GetComponent <Spawn_Enemy>(); brains = 0; dead = false; audio = gameObject.GetComponent <AudioSource>(); heart = "Heart"; heart_num = 4; rocket_hit = false; enemy_dead_first = false; enemy_dead_second = false; touch_grunt = false; touch_rocket = false; dist = .1; health = 4000; back_g_hit = false; anime = gameObject.GetComponent <Animator>(); attack = false; //anime.SetBool("Walk", false); }
// Start is called before the first frame update void Start() { character = GameObject.FindWithTag("Player").GetComponent <MovementScript>(); spawnscript = GameObject.FindWithTag("Player").GetComponent <Spawn_Enemy>(); }
private void Start() { player = GameObject.FindWithTag("Player"); spawnScript = GameObject.FindWithTag("Player").GetComponent <Spawn_Enemy>(); }