예제 #1
0
    private void Start()
    {
        dataStart = new init();

        dataStart.pos = transform.position;

        speed           = Progress.globalSpeed;
        rigidbody       = GetComponent <Rigidbody2D>();
        animation       = GetComponentInChildren <Animator>();
        childrenCollide = GetComponentInChildren <Collider2D>();
        animation.SetBool("start", true);
        animation.enabled = true;
        uiManege          = GameObject.FindWithTag("interface").GetComponent <UiManege>();
    }