Skip to content

collection of Unity C# scripts implementing game mechanics including weapons, player interactions, and AI behavior

Notifications You must be signed in to change notification settings

FilipMotyl/UnityGameScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Unity Game Scripts

This repository contains a collection of Unity C# scripts for a game project. These scripts implement various game mechanics including weapons, player interactions, and AI behavior.

Scripts Overview

Weapons

  • Blackhole.cs - Creates a blackhole effect that pulls enemies in and applies damage
  • LaserWeapon.cs - Implements a laser weapon system for the player

Player

  • PlayerAnimationController.cs - Handles player character animations and movement states
  • PlayerInteractions.cs - Manages player interactions with objects in the game world

AI

  • WanderAIAction.cs - Implements wandering behavior for enemy AI

Blackhole

Attach to a GameObject to create a blackhole effect that:

  • Pulls enemies within range
  • Applies damage over time
  • Can stun affected enemies

LaserWeapon

A weapon that:

  • Shoots a laser beam
  • Uses LineRenderer for visual effect
  • Can hit multiple enemies
  • Handles ammo and cooldown

PlayerAnimationController

Handles:

  • Movement animations
  • Dash animations
  • Idle animations
  • Weapon animations

PlayerInteractions

Manages:

  • Object interaction within range
  • Closest object selection

WanderAIAction

Controls:

  • Random movement for enemies
  • Pathfinding using A* system
  • Configurable wander radius and stop times

About

collection of Unity C# scripts implementing game mechanics including weapons, player interactions, and AI behavior

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages