Subscription publishing mode
Subscription publishing mode
The subscription publication pattern defines a one to many dependency, allowing multiple subscriber objects to listen to a topic object at the same time. When the subject object changes its state, it will notify all subscriber objects so that they can automatically update their state.
Dividing a system int ...
Posted by wolfraider on Sun, 05 Dec 2021 09:02:28 -0800
Point Product of Unity3D C#Mathematical Series
1 Definition
You know, dot product gives a scalar, what does this scalar mean?
2 Geometric Meaning
If
b
⃗
\vec{b}
b
Is a unit vector, then a vector
a
...
Posted by ash4u on Sat, 27 Nov 2021 10:13:41 -0800
unity decouples the project through global events
If A class wants to call the method of another class, for example, A wants to call the method of B. Method 1: Reference The simplest way is that A holds A reference to class B, that is, A has A member object of B. Mode 2: design mode (intermediary mode) Or a and B belong to the same Object C and call each other through Object C (mediator mode), ...
Posted by arpowers on Thu, 25 Nov 2021 16:32:10 -0800
Shader dissipation effects (such as returning to the city)
In many games, you can see special effects such as dissipation, combustion and so on.
For example:
So write a simple shader code to dissipate special effects today!!!
(learning) Zhuang understand Video learned, strong novice learning Zhuang understand (video)
Step 1: think about what we can see!
We can see the dissipation of th ...
Posted by ro1960 on Tue, 23 Nov 2021 14:31:33 -0800
Android studio study notes - try turning on the microphone
I haven't written java for a long time. I came back this time because the voice function is required before the project. Turing connected with the company only supports amr and opus audio format upload for recognition, However, as far as I know, the microphone provided by unity only supports wav and mp3. Therefore, the previous solution has ...
Posted by Markx on Fri, 19 Nov 2021 22:14:41 -0800
c# realize mahjong Hu card judgment - pair method
Mahjong Foundation
Before introducing the code, let's introduce the basis of Mahjong: There are 4 pieces of 10000-90000, 4 pieces of 1-9 cake, 4 pieces of 1-9 rope and 4 pieces of southeast and northwest white hair in a pair of mahjong cards The three consecutive cards of 10000, cake and flower color are called shunzi, for example: 12000, ...
Posted by bpgillett on Mon, 18 Oct 2021 20:55:38 -0700
3D sandbox game development log - 1
preface
background
study unity And other related content (game server, lua,shader It has been a year, and c++The level of algorithm is also in this year
It's time to patiently make a qualified game to summarize and refine myself, because I have only spare time and I'm the only one at present,
Therefore, the development of the project is e ...
Posted by timmah22 on Fri, 03 Sep 2021 11:44:15 -0700