public void FlyDown(bool leftObj, bool dead) { CRLuo_PlayAnim_FX fx = leftObj ? Man_L : Man_R; fx.SaveLife = !dead; fx.HandleTypeAnim(CRLuoAnim_Main.Type.Injure_Fly_Go); }
private void playAnim() { switch (CharacterAminNo) { case 0: CRLuo.HandleTypeAnim(CRLuoAnim_Main.Type.Free2); break; case 1: CRLuo.HandleTypeAnim(CRLuoAnim_Main.Type.Free1); break; case 2: CRLuo.HandleTypeAnim(CRLuoAnim_Main.Type.Attack); break; case 3: CRLuo.HandleTypeAnim(CRLuoAnim_Main.Type.Skill); break; case 4: CRLuo.HandleTypeAnim(CRLuoAnim_Main.Type.GroupSkill); break; case 5: CRLuo.HandleTypeAnim(CRLuoAnim_Main.Type.OverSkill_0); break; } CharacterAminNo = (++CharacterAminNo) % MaxAnim; }
void OnGUI() { //if (isLeft) //{ // // //} //else { //} int startX; if (isLeft) { startX = 0; } else { startX = Screen.width - width; } int buttonCount = 9; float buttonHeight = Screen.height / buttonCount; for (int i = 0; i < buttonCount; i++) { if (GUI.Button(new Rect(startX, (int)(i * buttonHeight), width, Screen.height / buttonCount), "" + i)) { if (playAnimFX != null) { playAnimFX.HandleTypeAnim(CRLuoAnim_Main.types[i]); } } } }
private void FeatureRight(AssetTask task) { Object temp_R = task.Obj; if (temp_R != null) { Man_GameObj_R = (GameObject)GameObject.Instantiate(temp_R, new Vector3(0, 0, Long_Show), Quaternion.Euler(new Vector3(0, 180, 0))); } else { Man_GameObj_R = (GameObject)GameObject.Instantiate(Default_Charactor, new Vector3(0, 0, Long_Show), Quaternion.Euler(new Vector3(0, 180, 0))); } Man_R = Man_GameObj_R.GetComponent <CRLuo_PlayAnim_FX>(); Man_R.MyCamera_L.cullingMask = (1 << LayerMask.NameToLayer("Default")) | (1 << LayerMask.NameToLayer("3D")); Man_R.MyCamera_L.depth = -1; Man_R.MyCamera_R.cullingMask = (1 << LayerMask.NameToLayer("Default")) | (1 << LayerMask.NameToLayer("3D")); Man_R.MyCamera_R.depth = -1; Man_R.OBJScreen_ID = task.arg1; Man_R.Pos_L = false; Man_R.Injure_Key = false; Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.Show); MiniItween.MoveTo(Man_GameObj_R, new Vector3(0, 0, Long_Show), Fly_Time); if (Man_L != null) { GoShowPos(true); Man_L.Injure_Key = false; } }
IEnumerator Free1(bool LiftObj) { Screen_Brightness_ONOFF(true); if (LiftObj) { if (Man_L != null) { float temp_Z = Man_GameObj_L.transform.position.z; if (temp_Z < -Long_Show) { Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.GoRush); } else if (temp_Z > -Long_Show) { Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.BackRush); } MiniItween.MoveTo(Man_GameObj_L, new Vector3(0, 0, -Long_Show), Fly_Time); yield return(new WaitForSeconds(Fly_Time)); Man_L.Injure_Key = false; Man_L.HandleTypeAnim(CRLuoAnim_Main.Type.Free1); } } else { if (Man_R != null) { float temp_Z = Man_GameObj_R.transform.position.z; if (temp_Z > Long_Show) { Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.GoRush); } else if (temp_Z < Long_Show) { Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.BackRush); } MiniItween.MoveTo(Man_GameObj_R, new Vector3(0, 0, Long_Show), Fly_Time); yield return(new WaitForSeconds(Fly_Time)); Man_R.Injure_Key = false; Man_R.HandleTypeAnim(CRLuoAnim_Main.Type.Free1); } } }