Let's build a very useful and flexible detector script, that you can easily use to detect if some body enters the specific space. Then using UnityEvnts system you will be able to flexibly notify other GameObject about this fact. The created detector allows you to use it in various situations in the future without writing any line of code.
In the following article, apart from providing two solutions to the title problem, we will also talk about a few side topics. I find them worth discussing as they explain the specific behavior of SpringBoot and the H2 database when running JUnit tests.
In this article, I will show you how you can scroll the texture on the Image object in Unity. This effect can be used, for example, to simulate a moving background or the parallax effect.
There might be two main reasons why you can’t see Cinemachine in your C# script – missing Cinemachine package or missing assembly reference. In the following article you will find solution for both causes.
The following video shows how to create both client and server scripts for FiveM that allows you to pass data from the client through the server and to store it in MySQL database
Default page transitions that you can find in out of the box Ionic framework does not always suits your needs. In some cases you may want to have custom page animations when ion-router-outlet navigates between pages. Let me share with you a very compact and elegant solution for the title topic.
In the first part of the guide you get know the right solution to implement thread safe singleton in Java. Then I'm going to explain to you what's wrong with the most common singleton implementation and why it is not thread safe.
Have you ever wondering how to make your application travel in time? If you have, let me tell you that’s great because in the following tutorial I’m going to show you in the real examples how to manage time for all of three test layers - unit tests, integration tests and end-to-end testing.
Let's build a coffee machine and then find out what happened if you inject a smaller scope bean into a larger scope bean. Spoiler: In the last part I'll tell you how to fix the coffee machine.
The following guide explains how to use mock in Spock Testing Framework in a proper way to get rid of unnecessary problems like NullPointerExceptions and InvalidSpecException when you try stubbing instead of mocking.