public void Playerinit(GameObject playerobj)
    {
        myPlayer = playerobj;
        Player player = playerobj.GetComponent <Player>();

        no             = player.no;
        input          = GetComponent <MultiInput>();
        input.PlayerNo = no;
        CharCon        = this.GetComponent <CharacterController>();
        animator       = GetComponentInChildren <Animator>();
        Model          = transform.Find("BaseModel_Hero").transform;
        HitAnime       = GetComponent <HitAnimationBase>();
        HP             = gameObject.GetComponent <ObjectHp>();


        MoveSpeed          = Player_Special_MoveSpeed;
        RotationSpeed      = Player_Special_RotationSpeed;
        player_Special_sta = PLAYER_SPECIALIST_STA.NORMAL;
        PlayerSta          = (int)player_Special_sta;
        ComboFlg           = false;
        Attack             = Player_Special_ATTACK;
        nodamageflg        = false;
        bomsetflg          = false;

        HitAnime.Initialize(this);
    }
Beispiel #2
0
    public void Playerinit(GameObject playerobj)
    {
        myPlayer = playerobj;
        Player player = playerobj.GetComponent <Player>();

        no             = player.no;
        input          = GetComponent <MultiInput>();
        input.PlayerNo = no;
        CharCon        = this.GetComponent <CharacterController>();
        animator       = GetComponentInChildren <Animator>();
        HitAnime       = GetComponent <HitAnimationBase>();
        HP             = gameObject.GetComponent <ObjectHp>();

        MoveSpeed       = Player_test_MoveSpeed;
        RotationSpeed   = Player_test_RotationSpeed;
        player_test_sta = PLAYER_TEST_STA.NORMAL;
        PlayerSta       = (int)player_test_sta;
        ComboFlg        = false;
        Attack          = Player_test_ATTACK;

        HitAnime.Initialize(this);
    }