Beispiel #1
0
    public void ResetCharacterInfo()
    {
        //모든 상태 전부 해제.
        foreach (GlobalCharacterInfo.CHAR_STATUS eachStatus in (GlobalCharacterInfo.CHAR_STATUS[])Enum.GetValues(typeof(GlobalCharacterInfo.CHAR_STATUS)))
        {
            nowStatus &= ~eachStatus;
        }
        //모든 플래그 전부 초기화.
        raviValue = new RavitateFlag();
        moveValue = new MoveFlag();

        nowStatus |= GlobalCharacterInfo.CHAR_STATUS.GROUND;
    }
Beispiel #2
0
    void Awake()
    {
        capsuleCollider2D = this.GetComponent <CapsuleCollider2D>();
        animator          = this.GetComponent <Animator>();
        moveValue         = new MoveFlag();
        raviValue         = new RavitateFlag();
        this.rigid2D      = GetComponent <Rigidbody2D>();
        weaponController  = weaponObject.GetComponent <Weapon>();
        weaponController.setAttackDirection(IsRight);

        skillController = gameObject.GetComponent <PlayerSkill>();
        blinkPrefab     = Resources.Load("Prefabs/BlinkObject") as GameObject;
    }