// Start is called before the first frame update void Start() { chicken = GameObject.FindWithTag("chicken").GetComponent <Chicken_Attack>(); Camera = GameObject.FindWithTag("MainCamera").GetComponent <camera_shake>(); if (chicken.is_go_right)//적이 왼쪽이라면 { pos = Vector3.left; } else { pos = Vector3.right; } Destroy(gameObject, 5); }
// Start is called before the first frame update void Start() { E_cow = GameObject.FindWithTag("cow_enemy").GetComponent <E_cow_Attack>(); Camera = GameObject.FindWithTag("MainCamera").GetComponent <camera_shake>(); cow = GameObject.FindWithTag("cow").GetComponent <Cow_Attack>(); }
private void Awake() { instance = this; cv = GetComponent <CinemachineVirtualCamera>(); }
// Start is called before the first frame update void Start() { tiger = GameObject.FindWithTag("tiger").GetComponent <Tiger_Attack>(); Camera = GameObject.FindWithTag("MainCamera").GetComponent <camera_shake>(); }
// Start is called before the first frame update void Start() { chicken = GameObject.FindWithTag("chicken").GetComponent <Chicken_Attack>(); Camera = GameObject.FindWithTag("MainCamera").GetComponent <camera_shake>(); }