Esempio n. 1
0
    dashAttack dashScript;   // 공격모션 로직 스크립트

    public void Start()
    {
        // 캐릭터 오브젝트, 동작 관리 스크립트 불러오기
        player       = GameObject.Find("Player");
        playerScript = player.GetComponent <PlayerMove> ();
        dashScript   = player.GetComponent <dashAttack> ();
    }
Esempio n. 2
0
    bool isDie;                               //적이 플레이어의 공격을 받으면 true, 그 외 false

    void Start()                              // 오브젝트 불러오기 및 변수 초기화
    {
        player     = GameObject.Find("Player");
        dashScript = player.GetComponent <dashAttack> ();
        rigid      = gameObject.GetComponent <Rigidbody2D> ();
        isDie      = false; // isDie는 false로 초기화
    }