3D Dungeon Crawler
Loading...
Searching...
No Matches
PlayerController Class Reference
Inheritance diagram for PlayerController:

Public Member Functions

void SetAnimations ()
 
void ChangeAnimationState (string newState)
 
void SetCurrentWeapon (WeaponController equippedWeapon)
 
void SetCurrentMagicWeapon (MagicWeaponController equippedWeapon)
 
void UnequipWeapon ()
 
void PlayAnimation (string newState)
 
void AttackRaycast ()
 
void HitTarget (RaycastHit hit)
 

Public Attributes

GameObject playerInventory
 
GameObject pauseScreen
 
GameObject gameOverScreen
 
Transform playerOrientation
 
Button exitInventoryButton
 
FirstPersonController firstPersonController
 
PlayerRessource playerRessource
 
UnityAction OnInventoryClosed
 
Animator animator
 
PlayerEquipment playerEquipment
 
Transform weaponHolderPosition
 
WeaponController currentWeapon
 
MagicWeaponController currentMagicWeapon
 
float punchDamage = 5f
 
float punchRange = 1f
 
float timeBetweenAttack = 2.5f
 
AudioClip punchAudioClip
 
AudioClip punchSwingAudioClip
 
AudioSource audioSource
 
GameObject mapCamera
 

Static Public Attributes

const string IDLE = "Idle"
 
const string WALK = "Walk"
 
const string PUNCH1 = "Punch 1"
 
const string PUNCH2 = "Punch 2"
 
const string PUNCH3 = "Punch 3"
 

Member Function Documentation

◆ AttackRaycast()

void PlayerController.AttackRaycast ( )

◆ ChangeAnimationState()

void PlayerController.ChangeAnimationState ( string newState)

◆ HitTarget()

void PlayerController.HitTarget ( RaycastHit hit)

◆ PlayAnimation()

void PlayerController.PlayAnimation ( string newState)

◆ SetAnimations()

void PlayerController.SetAnimations ( )

◆ SetCurrentMagicWeapon()

void PlayerController.SetCurrentMagicWeapon ( MagicWeaponController equippedWeapon)

◆ SetCurrentWeapon()

void PlayerController.SetCurrentWeapon ( WeaponController equippedWeapon)

◆ UnequipWeapon()

void PlayerController.UnequipWeapon ( )

Member Data Documentation

◆ animator

Animator PlayerController.animator

◆ audioSource

AudioSource PlayerController.audioSource

◆ currentMagicWeapon

MagicWeaponController PlayerController.currentMagicWeapon

◆ currentWeapon

WeaponController PlayerController.currentWeapon

◆ exitInventoryButton

Button PlayerController.exitInventoryButton

◆ firstPersonController

FirstPersonController PlayerController.firstPersonController

◆ gameOverScreen

GameObject PlayerController.gameOverScreen

◆ IDLE

const string PlayerController.IDLE = "Idle"
static

◆ mapCamera

GameObject PlayerController.mapCamera

◆ OnInventoryClosed

UnityAction PlayerController.OnInventoryClosed

◆ pauseScreen

GameObject PlayerController.pauseScreen

◆ playerEquipment

PlayerEquipment PlayerController.playerEquipment

◆ playerInventory

GameObject PlayerController.playerInventory

◆ playerOrientation

Transform PlayerController.playerOrientation

◆ playerRessource

PlayerRessource PlayerController.playerRessource

◆ PUNCH1

const string PlayerController.PUNCH1 = "Punch 1"
static

◆ PUNCH2

const string PlayerController.PUNCH2 = "Punch 2"
static

◆ PUNCH3

const string PlayerController.PUNCH3 = "Punch 3"
static

◆ punchAudioClip

AudioClip PlayerController.punchAudioClip

◆ punchDamage

float PlayerController.punchDamage = 5f

◆ punchRange

float PlayerController.punchRange = 1f

◆ punchSwingAudioClip

AudioClip PlayerController.punchSwingAudioClip

◆ timeBetweenAttack

float PlayerController.timeBetweenAttack = 2.5f

◆ WALK

const string PlayerController.WALK = "Walk"
static

◆ weaponHolderPosition

Transform PlayerController.weaponHolderPosition

The documentation for this class was generated from the following file: