Itween筆記 第二節

2021-07-31 10:28:26 字數 987 閱讀 7460

itween的camerafade相關api使用.

1.camerafadeadd()

建立乙個新的物件,新增乙個guitexture元件,並且給guitexture 的 texture 和 color 屬性賦預設的值.

camerafadeadd(texture2d texture)

建立乙個新的物件,新增乙個guitexture元件,給guitexture 的 color 屬性賦預設的值,,給guitexture 的 texture 屬性賦給定的.

camerafadeadd(texture2d texture, int depth)

建立乙個新的物件,新增乙個guitexture元件,給guitexture 的 color 屬性賦預設的值,,給guitexture 的 texture 屬性賦給定的. 給物件的z軸設定為depth.

2.itween.camerafadefrom(itween.hash("amount", 1f, "time", 2f));

實現漸變的效果, 需要先建立camerafadeadd(),  amout處理guitexture 的color的alpha通道, time管理漸變的時間.

3.texture2d tex = itween.cameratexture(color.red);

cameratexture根據所傳的顏色建立乙個texture2d 的並返回這張.

4.itween.camerafadeswap(tex);

將建立的物件上的guitexture 元件的texture 設定為tex.  (tex是乙個texture2d 格式).

5.itween.camerafadedepth(int x);

將建立的物件的z軸設定為x.  

6.itween.camerafadedestroy();

刪除建立的物件.

7.itween.camerafadeto()

類似camerafadefrom.  跟camerafadefrom相反的效果.

第二節課筆記

1.識別符號 宣告格式 型別 識別符號 賦值格式 識別符號 字面量 兩種格式的簡寫 型別 識別符號 字面量 2.操作符和表示式 表示式 通過識別符號,字面量和操作符按照一定的順序拼接然後得到的乙個具有固定結果的式子,叫做表示式 操作符 具有一定邏輯意義的符號。操作符型別 算數運算子 位運算子 關係運...

滲透筆記第二節(hack tools)

通過幾天的學習,基本掌握了幾種常用的檢測工具,例如 檢測 注入漏洞的啊d,hdsi,nbsi等工具,這類工具都有乙個共同的特點,功能比較全面,除了注入以及資料庫表名和字段猜解等功能,還融合了注入後台位址掃瞄,旁註,幾種上傳漏洞以及db owner列目錄等功能。漏洞掃瞄類,我經常用到的例如xscan,...

linux c 學習筆記第二節

int int a 32位 21個億 21個億 0 42個億 具有一定的資料範圍 signed unsigned short int a 16位 0 65535 32768 32767 long int a double float 首選double,精度高 整數型別文字 十進位制十六進製制 無正負...