コード例 #1
0
    void Start()
    {
        character         = GetComponent <Rigidbody>();
        aimWeapon         = GetComponent <AimWeapon>();
        rangedCombatGhost = GetComponent <RangedCombatGhost>();
        rangedCombat      = GetComponent <RangedCombat>();

        dashPossible = true;
    }
コード例 #2
0
    void Start()
    {
        character         = GetComponent <Rigidbody>();
        aimWeapon         = GetComponent <AimWeapon>();
        rangedCombatGhost = GetComponent <RangedCombatGhost>();
        rangedCombat      = GetComponent <RangedCombat>();
        cam = Camera.main.transform;

        dashPossible = true;
    }
コード例 #3
0
ファイル: CharacterHealth.cs プロジェクト: KrtzDev/Kusarigama
 private void Awake()
 {
     charMovement      = GetComponent <CharMovement>();
     meleeCombat       = GetComponent <MeleeCombat>();
     rangedCombat      = GetComponent <RangedCombat>();
     rangedCombatGhost = GetComponent <RangedCombatGhost>();
     aimWeapon         = GetComponent <AimWeapon>();
     throwWeapon       = GetComponent <ThrowWeapon>();
     playerCollider    = GetComponent <CapsuleCollider>();
     anim = GetComponent <Animator>();
 }
コード例 #4
0
    private void Start()
    {
        meleeCombat       = GetComponent <MeleeCombat>();
        rangedCombat      = GetComponent <RangedCombat>();
        aimWeapon         = GetComponent <AimWeapon>();
        throwWeapon       = GetComponent <ThrowWeapon>();
        rangedCombatGhost = GetComponent <RangedCombatGhost>();

        meleeCombat.enabled       = false;
        rangedCombat.enabled      = false;
        aimWeapon.enabled         = false;
        throwWeapon.enabled       = false;
        rangedCombatGhost.enabled = false;

        kusarigama.SetActive(false);
        kusarigamaGhost.SetActive(false);

        GetWeaponState();
    }