Remove dead code, unused plugins, and multiplayer remnants
Delete Economy.Server/Economy.Shared, LiteNetLib, network message types, the texture-based Gravity duplicate, unreferenced scripts and agent states, and unused plugins (MSAGL, NaughtyAttributes, AsyncAwaitUtil, Allegorithmic, Localization samples, MrtTest, ThinkGear, QuickGraph), plus vendored sample scenes, root zips/logs, and the stray Obsidian folder. MainMenu logs faulted galaxy-generation tasks directly instead of AsyncAwaitUtil's WrapErrors. Stop tracking UserSettings and the Wwise .backup folder; ignore generated .sln/.csproj by pattern. Game-system test scenes are kept. Playdead stays: VolumeCloudRenderer derives from its EffectBase. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
e640aad65a
commit
cc7f2c8877
1786 changed files with 8 additions and 257294 deletions
|
|
@ -1,22 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class GravityObject : MonoBehaviour
|
||||
{
|
||||
[HideInInspector]
|
||||
public Material GravityMaterial;
|
||||
|
||||
[HideInInspector]
|
||||
public string Shader;
|
||||
|
||||
void Start () {
|
||||
Gravity.Instance.GravityObjects.Add(this);
|
||||
GravityMaterial = GetComponent<MeshRenderer>().material;
|
||||
Shader = GravityMaterial.shader.name;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a13344dbee46f384881bd54203513967
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class SnapToGrid : MonoBehaviour
|
||||
{
|
||||
public bool SnapPosition = false;
|
||||
public bool SnapRotation = false;
|
||||
public bool ApplyForces = false;
|
||||
|
||||
// public float RotationDamping = .5f;
|
||||
// public float PositionDamping = .1f;
|
||||
public float ForceScale = 1;
|
||||
public float Offset = 0;
|
||||
public float NormalMultiplier = 100;
|
||||
public float GravityGradientStep = .01f;
|
||||
|
||||
private Rigidbody _body;
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
_body = GetComponent<Rigidbody>();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void LateUpdate () {
|
||||
var pos = new Vector2(transform.position.x,transform.position.z);
|
||||
|
||||
if(SnapPosition)
|
||||
transform.position = new Vector3(pos.x, Gravity.GetHeight(pos) + Offset,pos.y);
|
||||
if (SnapRotation)
|
||||
{
|
||||
var normal = Gravity.GetNormal(pos, GravityGradientStep, NormalMultiplier);
|
||||
var forward = Vector3.Cross(transform.right, normal);
|
||||
transform.rotation = Quaternion.LookRotation(forward, normal);
|
||||
}
|
||||
|
||||
if (ApplyForces)
|
||||
{
|
||||
//var currentVelocity = _body.velocity;
|
||||
var force = Gravity.GetForce(pos) * ForceScale;
|
||||
_body.AddForce(force.x,0,force.y,ForceMode.Acceleration);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ac1be54714e52c640b08fe5059519a37
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in a new issue