SemB: Week 3 - Day-night & particle System
I built the wood house model and the trap this week.
Meanwhile, I draw more texture for preparation.
This is the night sky texture. I am planning on to make a transition between the day and night time as fade in and out the day-night textures.
For networking, syncing the whole animation is not a good choice as it is not necessary.
My solution is to initiate a timer in the server-side.
When several time passes, it will use [ClientRpc] to ask all the clients to perform the day-night changing animation in their own devices.
For the particle system. I tried to make a teleporter and the smoke effect in-game.
​
Though using network spawn, when a player successfully hit a tree or crystal, I will use [Command] to spawn the smoke animation and destroy the game object after it is finished.
P.S. [Command] is the opposite of the [ClientRpc], which is called by clients to ask the server to perform something.
For the teleporter, I made it using a particle system. the light circle will keep spawning and moving upwards. Through adding emission lighting, it pop out at night.