C# Класс Spellbook, CodeSpells

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
button_down_texture UnityEngine.Texture2D
button_style GUIStyle
button_up_texture UnityEngine.Texture2D
code_font Font
code_style GUIStyle
copy_button_texture UnityEngine.Texture2D
half_code_style GUIStyle
next_button_texture UnityEngine.Texture2D
pages List
prev_button_texture UnityEngine.Texture2D

Открытые методы

Метод Описание
Add ( SpellbookPage, page ) : void
OnGUI ( ) : void
addExistingSpell ( string name, string code ) : void
copyBlankSpell ( ) : string
displayCurrentPage ( ) : void
displayScaledPage ( HalfBook, halfbook ) : void
getIncName ( string name ) : string
logCurrentPage ( ) : void
pageChangeButtons ( Rect prev, Rect next ) : void
setNameCounter ( string name ) : void
setNoCopyDisplay ( bool b ) : void
show ( GameObject previous_state ) : void
showCode ( ) : void

Приватные методы

Метод Описание
Start ( ) : IEnumerator
currentPage ( ) : SpellbookPage,
givePlayerAScroll ( ) : string

Описание методов

Add() публичный Метод

public Add ( SpellbookPage, page ) : void
page SpellbookPage,
Результат void

OnGUI() публичный Метод

public OnGUI ( ) : void
Результат void

addExistingSpell() публичный Метод

public addExistingSpell ( string name, string code ) : void
name string
code string
Результат void

copyBlankSpell() публичный Метод

public copyBlankSpell ( ) : string
Результат string

displayCurrentPage() публичный Метод

public displayCurrentPage ( ) : void
Результат void

displayScaledPage() публичный Метод

public displayScaledPage ( HalfBook, halfbook ) : void
halfbook HalfBook,
Результат void

getIncName() публичный Метод

public getIncName ( string name ) : string
name string
Результат string

logCurrentPage() публичный Метод

public logCurrentPage ( ) : void
Результат void

pageChangeButtons() публичный Метод

public pageChangeButtons ( Rect prev, Rect next ) : void
prev Rect
next Rect
Результат void

setNameCounter() публичный Метод

public setNameCounter ( string name ) : void
name string
Результат void

setNoCopyDisplay() публичный Метод

public setNoCopyDisplay ( bool b ) : void
b bool
Результат void

show() публичный Метод

public show ( GameObject previous_state ) : void
previous_state GameObject
Результат void

showCode() публичный Метод

public showCode ( ) : void
Результат void

Описание свойств

button_down_texture публичное свойство

public Texture2D,UnityEngine button_down_texture
Результат UnityEngine.Texture2D

button_style публичное свойство

public GUIStyle button_style
Результат GUIStyle

button_up_texture публичное свойство

public Texture2D,UnityEngine button_up_texture
Результат UnityEngine.Texture2D

code_font публичное свойство

public Font code_font
Результат Font

code_style публичное свойство

public GUIStyle code_style
Результат GUIStyle

copy_button_texture публичное свойство

public Texture2D,UnityEngine copy_button_texture
Результат UnityEngine.Texture2D

half_code_style публичное свойство

public GUIStyle half_code_style
Результат GUIStyle

next_button_texture публичное свойство

public Texture2D,UnityEngine next_button_texture
Результат UnityEngine.Texture2D

pages публичное свойство

public List pages
Результат List

prev_button_texture публичное свойство

public Texture2D,UnityEngine prev_button_texture
Результат UnityEngine.Texture2D