Skip to content

joshschnauber/Unity_Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity_Core

This Unity Core contains various helper classes and scripts, intended for use in the Unity Game Engine. The goal of this core is to aid in more quickly and efficiently working on projects, while still staying organized in the process. This core is heavily targeted towards 2D game development.

NOTE: This repository is gradually updated as I use these scripts, so there may be various issues with them.

Contents:

/Audio
Contains Audio related scripts.

  • AudioData.cs
    Intended to store audio data.
  • AudioManager.cs
    To be used as a singleton and called statically.

/Game
Contains scripts designed for more specific game types.
Still general enough to be applied across multiple 'similar' games.

  • /AI
    Contains scripts for more specific non-player behavior.

    • EnemyWalkAI.cs
      Makes a gameobject walk forward, until it hits a wall, in which case it turns around.
  • /Entity
    Contains scripts for creating gameobjects with health and the ability to take damage.

    • Entity.cs
      Makes a gameobject an entity, capable of taking damage.
    • EntityData.cs
      Scriptable Object holding various entity data.
  • /Entity Effects
    Contains scripts for interacting with entities.

    • ContinuousDamageCollider.cs
      Collider that damages the entity touching it continuously.
    • DamageCollider.cs
      Collider that damages the entity touching it.
    • DamageTrigger.cs
      Trigger that damages the entity touching it.
    • DeathTrigger.cs
      Trigger that instantly kills the entity that collides with it.
  • /Other
    Contains other miscellaneous scripts.

    • BreakOnTerrain.cs
      Causes the gameobject to self destruct when colliding with terrain.
  • /Player
    Contains scripts for player inputs.

    • CursorController.cs
      Script that extends PlayerControllable, to control a gameobject to follow the mouse.
    • InputManager.cs
      Singleton script that manages all PlayerControllable gameobjects.
    • PlayerControllable.cs
      Abtract class that provides methods for various player inputs.

/General
Contains scripts for general purposes.

/Helpers
Contains helper classes to be called from within other scripts.

/Misc_Assets
Contains miscellaenous non-script assets.

/Rendering
Contains various shaders, mainly aimed at 2D use.

Dependencies:

Required Editor Setup:

  • Tags:
    • Tag all Entities as 'Entity'
    • Tag all terrain as 'Terrain'

Not all of these are required for every script.

About

Various helper scripts for the Unity Game Engine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages