1 day agoFramework: Win and Loose Condition.Objective: Implement win and Lose conditions. The first step is to create two variables in Pool Manager,_amountOfAIBreach, and _totalAI. Then go to the start method and initialize the above variables equal to amountOfAI.Unity3 min readUnity3 min read
5 days agoFramework: Game Audio ImplementationObjective: Game Audio Implementation. In the first step create an empty game object called Audio Manager and attach a new script called GameManager which needs to be singleton. Create two new Empty game objects as a child of Audio Manager called Voice and Music. Then attach the audio source…Unity4 min readUnity4 min read
May 27Framework: HUD Control.Objective: Create HUD Control. In the First step, I will create a canvas with Score, AI Count, and TimeRemaining Text, and add UIManager which is a singleton.Unity4 min readUnity4 min read
May 25Steps on how I Fix the bug of Score text in Unity.Objective: Fix the bugs in the score text in Unity3d. Before doing anything let's see the code of UIManager.I want when the game start score to be zero But When I play Editor it starts with 2 then 1 finally it is set to zero.Unity3 min readUnity3 min read
May 21Framework: Shooting through CrosshairIn the first step, I will create a bool variable called isPressed inside the FPS controller. Now check in the Update method if we press the left mouse button using the new input system, then the set is pressed equal to true.Unity3 min readUnity3 min read
May 13Framework: Unity FSM Implementation.In the first step, I will create an enum inside the AI script called AIState, with the state of Running, Hide, and Death. Now we need to create an enum variable called currentState.Unity5 min readUnity5 min read
May 7Framework: Object Pooling for Optimization.In the first step, I will create a new script called PoolManager and turn this class into a singleton.Unity4 min readUnity4 min read
May 4Framework:Creating a spawn manager.Before doing this make sure you delete AI in the scene and make sure you turn it to prefab before deleting it. In the first step, I will create the Spawn Manager script and attach it to the Spawn Manager Game Object. Go to the Spawn Manager and create…Unity4 min readUnity4 min read
May 3Framework: AI MovementIn the first step, I will establish a starting point and an endpoint. In the second step, I will place the AI at the Start waypoint in the scene.Unity3 min readUnity3 min read
Apr 18Framework: Baking the Environment NavmeshIn first go to the window AI navigation, then select all floors mark them as static, and hit the bake option. Now select other objects that are obstacles bake them and change the option of navigation from walkable to Not walkable. Note: To ensure the player doesn't walk on this…Unity1 min readUnity1 min read