This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using QuickGraph; // グラフ構造を表現するためにQuickGraphを使う。このために、当ホルダ内の3つのdllを参照設定している |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PlayBGM(string bgmName){ | |
AudioClip clip=(AudioClip)Resources.Load("BGM/"+bgmName); | |
if(isPlay){ nowPlayBGM.Stop();isPlay=false;} | |
nowPlayBGM.clip=clip; | |
nowPlayBGM.Play(); | |
isPlay=true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PlayBGM(string bgmName){ | |
AudioClip clip=(AudioClip)Resources.Load("BGM/"+bgmName); | |
if(isPlay){ nowPlayBGM.Stop();isPlay=false;} | |
nowPlayBGM.clip=clip; | |
nowPlayBGM.Play(); | |
isPlay=true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PlayBGM(string bgmName){ | |
AudioClip clip=(AudioClip)Resources.Load("BGM/"+bgmName); | |
if(isPlay){ nowPlayBGM.Stop();isPlay=false;/*Destroy(nowPlayBGM.clip);*/} | |
nowPlayBGM.clip=clip; | |
nowPlayBGM.Play(); | |
isPlay=true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PlayBGM(string bgmName){ | |
AudioClip clip=(AudioClip)Resources.Load("BGM/"+bgmName); | |
if(isPlay){ nowPlayBGM.Stop();isPlay=false;/*Destroy(nowPlayBGM.clip);*/} | |
nowPlayBGM.clip=clip; | |
nowPlayBGM.Play(); | |
isPlay=true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PlayBGM(string bgmName){ | |
AudioClip clip=(AudioClip)Resources.Load("BGM/"+bgmName); | |
if(isPlay){ nowPlayBGM.Stop();isPlay=false;} | |
nowPlayBGM.clip=clip; | |
nowPlayBGM.Play(); | |
isPlay=true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PlayBGM(string bgmName){ | |
AudioClip nowPlayClip=(AudioClip)Resources.Load("BGM/"+bgmName); | |
if(isPlay){ nowPlayBGM.Stop();isPlay=false; nowPlayBGM.clip.UnloadAudioData(); } | |
nowPlayBGM.clip=nowPlayClip; | |
nowPlayBGM.Play(); | |
isPlay=true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PlayBGM(string bgmName){ | |
AudioClip nowPlayClip=(AudioClip)Resources.Load("BGM/"+bgmName); | |
if(isPlay){ nowPlayBGM.Stop();isPlay=false; nowPlayBGM.clip.UnloadAudioData(); } | |
nowPlayBGM.clip=nowPlayClip; | |
nowPlayBGM.Play(); | |
isPlay=true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
using System.Collections.Generic; | |
public class BattleDamagePopManager : MonoBehaviour { | |
///<summary>出力先キャンバス.</summary> | |
[SerializeField ,HeaderAttribute("ドラドロしてね")] | |
public GameObject canvas; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///<summary>フリックで左を指定した時InputManagerから呼ばれる</summary> | |
public void ScrollPanelToLeft(){ | |
Debug.Log("スクロール左"); | |
if((nowPanel+1)==userInputPanel.Length) return; | |
float movex=userInputPanel[1].transform.position.x-userInputPanel[0].transform.position.x; | |
for(int i=0;i<userInputPanel.Length;i++){ | |
iTween.MoveBy(userInputPanel[i].gameObject,iTween.Hash("x",-movex,"time",0.5f)); | |
} | |
nowPanel++; | |
} |
OlderNewer