Skip to content

Commit 44f5700

Browse files
committed
v.22.0.0
• #defines (updated the scripts that ensure defines – it's possible they will work more consistently now) • updated controller operation methods • updated Outlining Controller Raycasting; it is now named 'Controller Raycasting Targeting' • #hierarchy • updated distance utilities • fixed component caching nulls issue; cleaned up Spawner code accordingly • various code formatting changes • 'DisallowMultipleComponent' added to singletons • added Sole Behaviours (Auto Behaviours with 'DisallowMultipleComponent') • attributed Ether as a Container • added Starts As Universal • #enumerables • #assets • updated AutoBehaviours.cs • #constants • #reflection • #execution • #instancing • updated Enablee Component Extensions • #console • added Interfaces and updated interface checks in various methods • #pinging • #providing • #ressing • #selection • #numbers • updated editor utilities (notably, condensed many menubar operations into 'Menubar Macros') • removed Reload Layout
1 parent 8767445 commit 44f5700

File tree

155 files changed

+3203
-1171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+3203
-1171
lines changed

Assets/Plugins/Moon Motion Toolkit/Build/Editor/DefineMoonMotionToolkit.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
using UnityEngine;
44
using UnityEditor;
55

6-
[InitializeOnLoad]
6+
// #defines
77
public static class DefineMoonMotionToolkit
88
{
9-
static DefineMoonMotionToolkit()
10-
{
11-
Build.ensureDefine("MOON_MOTION_TOOLKIT");
12-
}
9+
[InitializeOnLoadMethod]
10+
private static void ensureDefine()
11+
=> Build.ensureDefine("MOON_MOTION_TOOLKIT");
1312
}

Assets/Plugins/Moon Motion Toolkit/Locomotions/Dashing/Dashing.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,19 +212,19 @@ private void beginDashTo(object raycastHit_RaycastHitProvider)
212212

213213
#region updating
214214

215-
215+
216216
// at each physics update: //
217217
public override void physicsUpdate()
218218
{
219-
if (operations.operated() && DashingOutlining.outlinedObject)
219+
if (operations.isOperated() && DashingTargeting.targetedObject)
220220
{
221-
beginDashTo(DashingOutlining.outliningRaycastHit);
221+
beginDashTo(DashingTargeting.targetingRaycastHit);
222222
}
223223
else if
224224
(
225225
currentlyDashing &&
226226
(
227-
(isCancelable && !DashingOutlining.outlinedObject && operations.operated()) ||
227+
(isCancelable && !DashingTargeting.targetedObject && operations.isOperated()) ||
228228

229229
endUponTargetCollision.and(MoonMotionPlayer.isCollidedWith(potentialCurrentTargetCollider)) ||
230230

Assets/Plugins/Moon Motion Toolkit/Locomotions/Dashing/DashingOutlining.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
// Dashing Targeting:
6+
// • the Controller Raycasting Targeting for the Dashing locomotion
7+
public class DashingTargeting : ControllerRaycastingTargeting<DashingTargeting>
8+
{
9+
10+
}

Assets/Plugins/Moon Motion Toolkit/Locomotions/Dashing/DashingOutlining.cs.meta renamed to Assets/Plugins/Moon Motion Toolkit/Locomotions/Dashing/DashingTargeting.cs.meta

File renamed without changes.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_PrefabParentObject: {fileID: 0}
7+
m_PrefabInternal: {fileID: 0}
8+
m_GameObject: {fileID: 0}
9+
m_Enabled: 1
10+
m_EditorHideFlags: 0
11+
m_Script: {fileID: 11500000, guid: 8e9253636bf2648bd813257f451f8486, type: 3}
12+
m_Name: Default Dashing Highlighting
13+
m_EditorClassIdentifier:
14+
constantWidth: 0
15+
effectGroup: 1
16+
effectGroupLayer:
17+
serializedVersion: 2
18+
m_Bits: 18
19+
alphaCutOff: 0
20+
cullBackFaces: 1
21+
fadeInDuration: 0.1
22+
fadeOutDuration: 0.1
23+
overlay: 0
24+
overlayColor: {r: 0, g: 1, b: 0, a: 1}
25+
overlayAnimationSpeed: 1.25
26+
overlayMinIntensity: 0
27+
overlayBlending: 1
28+
outline: 0
29+
outlineColor: {r: 0, g: 0, b: 0, a: 1}
30+
outlineWidth: 0.4
31+
outlineQuality: 2
32+
outlineVisibility: 0
33+
glow: 0.3
34+
glowWidth: 0.4
35+
glowQuality: 1
36+
glowHQColor: {r: 0, g: 0, b: 0, a: 1}
37+
glowDithering: 0
38+
glowMagicNumber1: 0.75
39+
glowMagicNumber2: 0.5
40+
glowAnimationSpeed: 3
41+
glowVisibility: 0
42+
glowPasses:
43+
- offset: 4
44+
alpha: 0.1
45+
color: {r: 0, g: 1, b: 0, a: 1}
46+
- offset: 3
47+
alpha: 0.2
48+
color: {r: 0.07035923, g: 1, b: 0, a: 1}
49+
- offset: 2
50+
alpha: 0.3
51+
color: {r: 0.20369065, g: 1, b: 0, a: 1}
52+
- offset: 1
53+
alpha: 0.4
54+
color: {r: 0.9468056, g: 1, b: 0, a: 1}
55+
innerGlow: 0
56+
innerGlowWidth: 1
57+
innerGlowColor: {r: 0, g: 0, b: 0, a: 1}
58+
innerGlowVisibility: 0
59+
targetFX: 0
60+
targetFXTexture: {fileID: 2800000, guid: 1de3c566a6c8c405b9f6f453137273ec, type: 3}
61+
targetFXColor: {r: 1, g: 1, b: 1, a: 1}
62+
targetFXRotationSpeed: 30
63+
targetFXInitialScale: 4
64+
targetFXEndScale: 1.5
65+
targetFXTransitionDuration: 0.5
66+
targetFXStayDuration: 1.5
67+
seeThrough: 0
68+
seeThroughIntensity: 0.8
69+
seeThroughTintAlpha: 0.3
70+
seeThroughTintColor: {r: 0, g: 1, b: 0.09638786, a: 1}
71+
seeThroughNoise: 0

Assets/Plugins/Moon Motion Toolkit/Locomotions/Dashing/Default Dashing Highlighting.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Plugins/Moon Motion Toolkit/Locomotions/Sweeping/Sweeping.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,15 @@ private void beginSweepVia(Controller sweepingController)
222222
// at each physics update: //
223223
public override void physicsUpdate()
224224
{
225-
if (operations.operated() && !currentlySweeping)
225+
if (operations.isOperated() && !currentlySweeping)
226226
{
227-
beginSweepVia(operations.firstOperatedControllerOtherwiseFallback());
227+
beginSweepVia(operations.firstRelevantController());
228228
}
229229
else if
230230
(
231231
currentlySweeping &&
232232
(
233-
(isCancelable && operations.operated()) ||
233+
(isCancelable && operations.isOperated()) ||
234234

235235
(limitSweepDuration && (timeSince(sweepStartingTime) > sweepDurationLimit)) ||
236236

Assets/Plugins/Moon Motion Toolkit/Player/Hands/Outlining Controller Raycasting.meta renamed to Assets/Plugins/Moon Motion Toolkit/Player/Hands/Controller Raycasting Targeting.meta

File renamed without changes.

0 commit comments

Comments
 (0)