Пример #1
0
    // 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);
    }
Пример #2
0
 // 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>();
 }
Пример #3
0
 private void Awake()
 {
     instance = this;
     cv       = GetComponent <CinemachineVirtualCamera>();
 }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     tiger  = GameObject.FindWithTag("tiger").GetComponent <Tiger_Attack>();
     Camera = GameObject.FindWithTag("MainCamera").GetComponent <camera_shake>();
 }
Пример #5
0
 // Start is called before the first frame update
 void Start()
 {
     chicken = GameObject.FindWithTag("chicken").GetComponent <Chicken_Attack>();
     Camera  = GameObject.FindWithTag("MainCamera").GetComponent <camera_shake>();
 }