This file contains hidden or 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; | |
| namespace DPV.Motion { | |
| public class ChargeAndAccelerate : ChargeMotion { | |
| [SerializeField] | |
| private float acceleration = 0; | |
| [SerializeField] | |
| private float maxSpeed = 0; |
This file contains hidden or 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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UniRx; | |
| using UniRx.Triggers; | |
| using DPV.Player; | |
| using Core.Math; | |
| namespace DPV.Motion { | |
| /// <summary> |
This file contains hidden or 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> | |
| /// ログ出力 | |
| /// </summary> | |
| /// <param name="message">メッセージ</param> | |
| public static void Log(object message) { | |
| #if DEBUG | |
| Instance.logger.Log(message); | |
| #endif | |
| } |
This file contains hidden or 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> | |
| /// ログ出力 | |
| /// </summary> | |
| /// <param name="message">メッセージ</param> | |
| [Conditional("DEBUG")] | |
| public static void Log(object message) { | |
| Instance.logger.Log(message); | |
| } | |
| /// <summary> |
This file contains hidden or 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> | |
| /// 弾丸発射 | |
| /// </summary> | |
| protected override void OnBeginShoot() { | |
| var vel = velocity; | |
| var rotation = stageObject.Rotation; | |
| // 発射速度の決定 | |
| switch ( direction ) { | |
| case Direction.Fixed: |
This file contains hidden or 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 Core.Math; | |
| using DPV.Player; | |
| namespace DPV.Motion { | |
| public class RotateToPlayer : MotionBase { | |
| [SerializeField] | |
| private float angleSpeed = 0; | |
| protected override void OnUpdate() { |
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UniRx; | |
| namespace DPV.Render { | |
| [RequireComponent(typeof(SpriteRenderer))] | |
| public class SpriteAnimation : MonoBehaviour { | |
| [SerializeField] |
This file contains hidden or 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 DPV.Player; | |
| using DPV.Stage; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using Core.Math; | |
| namespace DPV.Shooter { | |
| /// <summary> | |
| /// 弾丸タイプのショット発射 |
This file contains hidden or 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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UniRx; | |
| using UniRx.Triggers; | |
| namespace DPV.Motion { | |
| /// <summary> | |
| /// カーブするモーション | |
| /// </summary> |
This file contains hidden or 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
| var rot = (cross > 0 ? angleSpeed : -angleSpeed) * Time.deltaTime; | |
| velocity = Quaternion.Euler(0, 0, rot) * velocity; |
NewerOlder