// Use this for initialization void Start() { thisRigiBody2D = this.GetComponent <Rigidbody2D> (); sMB = soundManagerGetter.getManager(); sVMS = staticValueManagerGetter.getManager(); grantExpChara = new HashSet <int>(); thisEnemyStat = new typeEnemyStatus(_defaultLevel, _defaultEnemyType); this.createHPBar(); //影の作成 //重いので一時的に停止 if (_enemyShadow != null && sVMS.getRenderingShadowFlag()) { //影がセットされているときは表示 GameObject tmpEnemyShadow = new GameObject("enemyShadow"); tmpEnemyShadow.AddComponent <SpriteRenderer> (); tmpEnemyShadow.GetComponent <SpriteRenderer> ().sprite = _enemyShadow; tmpEnemyShadow.GetComponent <SpriteRenderer> ().color = new Color(1f, 1f, 1f, 0.3f); tmpEnemyShadow.transform.parent = this.transform; tmpEnemyShadow.transform.localPosition = Vector3.zero; textureVector ttv = new textureVector(this.gameObject); Vector3 tmpThisWidth = ttv.getBottomOffset_ForCenterPivot(0f, 0.05f, animeScalingFlag); tmpEnemyShadow.transform.localPosition += tmpThisWidth; //影画像は128 float tmpScale = ttv.getWidth(animeScalingFlag) / 1.28f; tmpEnemyShadow.transform.localScale = new Vector3(tmpScale, tmpScale, 1f); } gmS = GameManagerGetter.getGameManager(); }
// Use this for initialization void Start () { Debug.Log ("In this scene, fastest Start is talkingMainScript"); if (Application.loadedLevelName == "talkScene" ){ _bgColor.color = Color.black; } thisUIText = this.transform.GetComponent<Text> (); _BGImage.color = new Color(0f, 0f, 0f, 0.3f); sVMS = staticValueManagerGetter.getManager (); sMB = soundManagerGetter.getManager (); //初期値 止める Time.timeScale = 0; //シーンファイルを取得 //ない場合はログを吐いて初期値を入れる String sceneFileName = sVMS.getTalkingSceneName (); if (_forDebug) { this.startResouceRead (_forDebugFileName); } else { this.startResouceRead (sceneFileName); } _textMainFrame.GetComponent<Image> ().enabled = true; //メイン処理 StartCoroutine ( loopText () ); }
// Use this for initialization void Start() { checkIcon = this.transform.Find("chkImage").GetComponent <Image> (); tapSc = this.GetComponent <tapedObjectMotion> (); fIC = this.transform.parent.GetComponent <faceIconController>(); charaDotScript = GameObject.Find("soriteCharaDot").GetComponent <soriteCharaDotChanger>(); sMB = soundManagerGetter.getManager(); }
public void testPlay() { sndM = soundManagerGetter.getManager(); int tmpBGMNo = int.Parse(bgmNumText.text); sndM.playBGM(tmpBGMNo); }
public void testSEplay() { sndM = soundManagerGetter.getManager(); int tmpNo = int.Parse(_SENumText.text); sndM.playOneShotSound((enm_oneShotSound)tmpNo); }
public static soundManager_Base getManager() { if (baseScript == null) { baseScript = GameObject.FindWithTag("SoundManager").GetComponent <soundManager_Base>(); } return(baseScript); }
// Use this for initialization void Start() { thisRigiBody = this.GetComponent <Rigidbody2D> (); sMB = soundManagerGetter.getManager(); gmScript = GameObject.Find("GameManager").GetComponentInChildren <GameManagerScript>(); cmrTracker = GameObject.Find("CameraTracker").GetComponentInChildren <cameraTrackerScript> (); thisAnimeGO = this.transform.Find("charaAnime").gameObject; thisAnimeter = thisAnimeGO.gameObject.GetComponentInChildren <Animator>(); thisAudio = this.gameObject.GetComponentInChildren <AudioSource>(); thisAtkCircle = this.transform.Find("atkCircle").gameObject.GetComponentInChildren <SpriteRenderer> (); thisAttackErea = this.transform.Find("AttackErea").gameObject; //this.gameObject.Find("") //ステータスアイコン表示のオブジェクトは起動時に作成 charaStatusIconCtrlS = Instantiate(_charaStatusIconCtrler).GetComponent <charaStatusIconCtrl>(); charaStatusIconCtrlS.transform.parent = this.transform; this.setMode(characterMode.Attack); this.createHPBar(); staticValueManagerS sVMS = staticValueManagerGetter.getManager(); //影の作成 //重いので一時的に停止 if (_charaShadow != null && sVMS.getRenderingShadowFlag()) { //影がセットされているときは表示 GameObject tmpEnemyShadow = new GameObject("charaShadow"); tmpEnemyShadow.AddComponent <SpriteRenderer> (); tmpEnemyShadow.GetComponent <SpriteRenderer> ().sprite = _charaShadow; tmpEnemyShadow.GetComponent <SpriteRenderer> ().color = new Color(1f, 1f, 1f, 0.3f); tmpEnemyShadow.transform.parent = this.transform; tmpEnemyShadow.transform.localPosition = Vector3.zero; textureVector ttv = new textureVector(this.gameObject); Vector3 tmpThisWidth = ttv.getBottomOffset_ForCenterPivot(0f, 0.05f, false); tmpEnemyShadow.transform.localPosition += tmpThisWidth; //影画像は128 float tmpScale = ttv.getWidth(false) / 1.28f; tmpEnemyShadow.transform.localScale = new Vector3(tmpScale, tmpScale, 1f); } StartCoroutine(mainLoop()); StartCoroutine(calcCoolTimeLoop()); }
void Start() { sMB = soundManagerGetter.getManager(); }
public void testStop() { sndM = soundManagerGetter.getManager(); sndM.allStopBGM(); }