This commit is contained in:
SweetJJuya 2025-02-18 15:56:30 +09:00
parent e4fe8e78b4
commit 6c80f6bfee
221 changed files with 22805 additions and 16914 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject;
using UnityEngine; using UnityEngine;
namespace BlueWater namespace BlueWater
@ -13,6 +14,12 @@ namespace BlueWater
protected float force = 0.0f; protected float force = 0.0f;
public float force_add = 0.002f; public float force_add = 0.002f;
[SerializeField]
private GameObject SmokeL;
[SerializeField]
private GameObject SmokeR;
void Update() void Update()
{ {
float rotation_01 = Mathf.Abs(-0.5f + ((obj.transform.eulerAngles.y)/ 180) % 1.0f); float rotation_01 = Mathf.Abs(-0.5f + ((obj.transform.eulerAngles.y)/ 180) % 1.0f);
@ -26,9 +33,10 @@ namespace BlueWater
if (Input.GetKey(KeyCode.UpArrow)|| Input.GetKey(KeyCode.W)) if (Input.GetKey(KeyCode.UpArrow)|| Input.GetKey(KeyCode.W))
{ {
SmokeL.gameObject.SetActive(true);
SmokeR.gameObject.SetActive(true);
force += force_add; force += force_add;
if (force >= 1.0f) force = 1.0f; if (force >= 1.0f) force = 1.0f;
} }
else if (Input.GetKey(KeyCode.DownArrow) || Input.GetKey(KeyCode.S)) else if (Input.GetKey(KeyCode.DownArrow) || Input.GetKey(KeyCode.S))
{ {
@ -45,7 +53,8 @@ namespace BlueWater
// transform.Translate(0, 0, speed * time); // transform.Translate(0, 0, speed * time);
} }
else else
{ { SmokeL.gameObject.SetActive(false);
SmokeR.gameObject.SetActive(false);
if (force < 0.0f)force += force_add/2.0f; if (force < 0.0f)force += force_add/2.0f;
else if(force > 0.0f)force -= force_add/2.0f; else if(force > 0.0f)force -= force_add/2.0f;
} }

Some files were not shown because too many files have changed in this diff Show More