Skip to main content

Questions tagged [unity3d]

0 votes
1 answer
98 views

I am developing a package for the Unity game engine. I want to add additional functionality to my package if another specific package is present. I am faced with a dilemma I am not sure which of these ...
starikcetin's user avatar
0 votes
0 answers
343 views

I am trying to create a spell casting system for an auto chess game. I find myself not knowing which direction to go in my design. I started out with a Spell as a scriptable object that contains a ...
Jeff's user avatar
  • 1,874
1 vote
1 answer
830 views

I've got a state machine implementation in Unity that I'm working on (C#), the plan being that it will be mostly used for AI related things. I'm not sure how I should deal with various "inputs&...
Jake1234's user avatar
  • 129
0 votes
1 answer
334 views

I'm working with the Dependency Injection Pattern in Unity3D (an engine which uses MonoBehavior, a class that doesn't have a constructor, as the base class for all of its game components), and I ended ...
Jallrich's user avatar
  • 119
1 vote
2 answers
288 views

These would be the base classes like Npc and NpcTask. public abstract class NpcTask { public Npc Npc { get; private set; } public NpcTask(Npc npc) { Npc = npc; } public ...
user2640145's user avatar
-3 votes
1 answer
63 views

I am pretty much new to programming, but recently I began to learn C# intensively for Visual C# and for Unity. I have noticed that I use many scripts that have absolutely the same content in different ...
Simon Spasskiy's user avatar
-2 votes
1 answer
100 views

This is for unity I tried another way of stopping player after he dies and it worked fine but now it does not work with sounds That was my way the only thing that I changed is the state Ben's was ...
FullMetalAlchemistModz_YT's user avatar
4 votes
3 answers
584 views

I've been trying to create a grid system that can use any grid size and start at any given anchor point rather than always at 0,0. The problem however is imprecision makes it impossible, even the ...
WDUK's user avatar
  • 2,092
0 votes
0 answers
217 views

Let me explain what I'm doing. I have a grid based on integer coordinates like (5,5), (5,6) etc., and I have an algorithm FindCells that generates a list of (coordinate, interval) tuples. These ...
sollniss's user avatar
  • 109
0 votes
0 answers
2k views

I'm creating a simple Dependency Injection library for Unity (no constructors available) and I want to use a generic class that implements a generic call for each class that would inherit it allowing ...
Jallrich's user avatar
  • 119
3 votes
1 answer
215 views

I am working on a video game in Unity and at some point I'm facing a tough problem to solve: The game freezes while loading level data. Let me lay down what's happening in that process that takes a ...
aybe's user avatar
  • 955
1 vote
1 answer
177 views

I have a basic GameController with a finite state machine to handle game logic. I'm adding game modes and coming across problems cleanly implementing them. The core functionality of the game stays ...
GameDev's user avatar
  • 13
4 votes
7 answers
2k views

I am making a game with Unity, and am having problems attempting network synchronisation. Deterministic simulation is impossible because Unity's internal logic is float based. I am trying to make a ...
inappropriateCode's user avatar
4 votes
1 answer
367 views

I'm currently building an interactive game which has a very special use case : The game is displayed on a giant screen on stage in a theatre, and the audience can play it with their smartphones (http:/...
Caillou's user avatar
  • 256
1 vote
2 answers
1k views

I am integrating an external library that declares a singleton, like this: public class External : MonoBehaviour { public static External Instance { get {/*setup inner stuff*/} } public void ...
M R's user avatar
  • 21

15 30 50 per page