Exemplo n.º 1
0
 /// <summary>
 /// 初始化Buffer
 /// </summary>
 void IniBuffer()
 {
     BufferDic                    = new Dictionary <int, List <BufferEntity> >();
     PermanentBufferList          = new List <PermanentBufferEntity>();
     Trans_BufferList             = MyTransform.FindChild("BufferList");
     Prefab_BufferEntity          = Resources.Load <GameObject>("GameObjects/FightScene/Chara/BufferDumy");
     Prefab_PermanentBufferEntity = Resources.Load <GameObject>("GameObjects/FightScene/Chara/PermanentBufferDumy");
 }
Exemplo n.º 2
0
 /// <summary>
 /// 設定腳色Model
 /// </summary>
 void IniMotion()
 {
     //腳色動畫
     Ani_Chara = MyTransform.FindChild("Model").GetComponent <Animator>();
     //腳色圖像
     SR_Chara = MyTransform.FindChild("Model").FindChild("sprite").GetComponent <SpriteRenderer>();
     //初始化施法位置與縮放
     IniSpellPosAndScale();
 }
Exemplo n.º 3
0
 /// <summary>
 /// 起始設定Scene
 /// </summary>
 static void IniScene()
 {
     Ani_BG         = MyTransform.FindChild("BG").FindChild("BackGround").GetComponent <Animator>();
     Ani_BG.enabled = false;
 }