Removed unused assets

This commit is contained in:
OMGeeky
2022-05-28 12:33:06 +02:00
parent bfa8a22f63
commit 1717845259
67 changed files with 209 additions and 6912 deletions

View File

@@ -38,6 +38,7 @@ public class Character : MonoBehaviour
public Checkpoint spawnPosition;
public Character root;
public int currentSize = 1;
#endregion
@@ -64,7 +65,7 @@ public class Character : MonoBehaviour
}
// if ( spawnPosition == null )
// spawnPosition = transform;
// spawnPosition = transform;
}
private void OnEnable()
@@ -148,7 +149,7 @@ public class Character : MonoBehaviour
Array.Clear( findColliders , 0 , findColliders.Length );
var bounds = collider.bounds;
var size = new Vector2( bounds.size.x + range , bounds.size.y + range );
Physics2D.OverlapBoxNonAlloc( point: t.position
Physics2D.OverlapBoxNonAlloc( point: bounds.center
, size: size
, angle: 0
, results: findColliders
@@ -223,6 +224,8 @@ public class Character : MonoBehaviour
// var targetInput = target.GetComponent<InputToMovement>();
target.isActivePlayer = false;
currentSize += target.currentSize;
RemovePlayerComponentsFromTarget( target );
}
@@ -233,6 +236,7 @@ public class Character : MonoBehaviour
// var targetController = target.GetComponent<CharacterController2D>();
// var targetInput = target.GetComponent<InputToMovement>();
// Destroy( targetInput );
// Destroy( targetController );
Destroy( targetCol );

View File

@@ -8,16 +8,29 @@ namespace OMGeeky
{
public class MainMenu : MonoBehaviour
{
private bool visible;
public bool Visible
{
get => visible;
set
{
visible = value;
panel.SetActive( value );
}
}
public event Action StartGame;
private Canvas canvas;
[SerializeField] public bool IsPauseScreen;
// [SerializeField] public bool IsPauseScreen;
private GameObject panel;
private void OnEnable()
{
panel = transform.GetChild( 0 ).gameObject;
Scene scene = SceneManager.GetSceneByName( "MainLevel" );
if ( !scene.isLoaded )
SceneManager.LoadScene( "MainLevel" , LoadSceneMode.Additive );
scene = SceneManager.GetSceneByName( "MainLevel" );
@@ -25,10 +38,7 @@ namespace OMGeeky
canvas = GetComponentInParent<Canvas>();
}
public void StartNewGame()
{
StartGame?.Invoke();
}
public void StartNewGame() { StartGame?.Invoke(); }
public void Options() { throw new NotImplementedException(); }