C# Class SkillTree

Afficher le fichier Open project: marouen-lamiri/Second-Soul Class Usage Examples

Méthodes publiques

Свойство Type Description
image UnityEngine.Texture2D
isSkillOpen bool
nodePositions List
position Rect
target SkillTreeNode,

Protected Properties

Свойство Type Description
actionBar ActionBar,
player Player,
skillTree List

Méthodes publiques

Méthode Description
createSkillTree ( ) : void
findPlayer ( System playerType ) : void
inBoundaries ( ) : bool
setPlayer ( Player, p ) : void

Méthodes protégées

Méthode Description
Awake ( ) : void
OnGUI ( ) : void
Start ( ) : void
Update ( ) : void
addSkillTreeNode ( System skill, string name, string desc, Rect pos, Texture2D img ) : SkillTreeNode,
checkTargetAction ( ) : void
drawSkillTree ( ) : void
drawSkillTreeNodes ( ) : void
equipSkill ( ) : void
inHeightBoundaries ( ) : bool
inWidthBoundaries ( ) : bool
initializeGUI ( ) : void
mousePositionInSkillTree ( ) : Vector2
onSkillNodeHover ( ) : void
setNodePositionOffsets ( ) : void
setSkillTreeNodeLinks ( SkillTreeNode, parent, SkillTreeNode, child ) : void
toggleTab ( ) : void
unlockSkill ( SkillTreeNode, s ) : void

Private Methods

Méthode Description
addSkillComponent ( System skillType ) : void

Method Details

Awake() protected méthode

protected Awake ( ) : void
Résultat void

OnGUI() protected méthode

protected OnGUI ( ) : void
Résultat void

Start() protected méthode

protected Start ( ) : void
Résultat void

Update() protected méthode

protected Update ( ) : void
Résultat void

addSkillTreeNode() protected méthode

protected addSkillTreeNode ( System skill, string name, string desc, Rect pos, Texture2D img ) : SkillTreeNode,
skill System
name string
desc string
pos Rect
img UnityEngine.Texture2D
Résultat SkillTreeNode,

checkTargetAction() protected méthode

protected checkTargetAction ( ) : void
Résultat void

createSkillTree() public méthode

public createSkillTree ( ) : void
Résultat void

drawSkillTree() protected méthode

protected drawSkillTree ( ) : void
Résultat void

drawSkillTreeNodes() protected méthode

protected drawSkillTreeNodes ( ) : void
Résultat void

equipSkill() protected méthode

protected equipSkill ( ) : void
Résultat void

findPlayer() public méthode

public findPlayer ( System playerType ) : void
playerType System
Résultat void

inBoundaries() public méthode

public inBoundaries ( ) : bool
Résultat bool

inHeightBoundaries() protected méthode

protected inHeightBoundaries ( ) : bool
Résultat bool

inWidthBoundaries() protected méthode

protected inWidthBoundaries ( ) : bool
Résultat bool

initializeGUI() protected méthode

protected initializeGUI ( ) : void
Résultat void

mousePositionInSkillTree() protected méthode

protected mousePositionInSkillTree ( ) : Vector2
Résultat Vector2

onSkillNodeHover() protected méthode

protected onSkillNodeHover ( ) : void
Résultat void

setNodePositionOffsets() protected méthode

protected setNodePositionOffsets ( ) : void
Résultat void

setPlayer() public méthode

public setPlayer ( Player, p ) : void
p Player,
Résultat void

setSkillTreeNodeLinks() protected méthode

protected setSkillTreeNodeLinks ( SkillTreeNode, parent, SkillTreeNode, child ) : void
parent SkillTreeNode,
child SkillTreeNode,
Résultat void

toggleTab() protected méthode

protected toggleTab ( ) : void
Résultat void

unlockSkill() protected méthode

protected unlockSkill ( SkillTreeNode, s ) : void
s SkillTreeNode,
Résultat void

Property Details

actionBar protected_oe property

protected ActionBar, actionBar
Résultat ActionBar,

image public_oe property

public Texture2D,UnityEngine image
Résultat UnityEngine.Texture2D

isSkillOpen public_oe property

public bool isSkillOpen
Résultat bool

nodePositions public_oe property

public List nodePositions
Résultat List

player protected_oe property

protected Player, player
Résultat Player,

position public_oe property

public Rect position
Résultat Rect

skillTree protected_oe property

protected List skillTree
Résultat List

target public_oe property

public SkillTreeNode, target
Résultat SkillTreeNode,