gameObject.setActive()

오브젝트 활성화, 비활성화

gameObject.SetActive(false);

transform.position

오브젝트 위치 변경

오브젝트 위치는 x, y, z 3개의 값을 가지므로 transform.position에 대입하는 값은 Vector3로 표현되어야 함.

private void Start()
    {
        // gameObject.SetActive(false);
        Vector3 newPos = transform.position;
        newPos.x = newPos.x + 5;
        transform.position = newPos;    
    }