Unity 3D – Shaders scripts – part 001.
This is the first tutorial in a series of shaders tutorials in Unity 3D. Open your Unity 3D project and using right click mouse add a Unlit shader to your… Read more »
This is the first tutorial in a series of shaders tutorials in Unity 3D. Open your Unity 3D project and using right click mouse add a Unlit shader to your… Read more »
This is a simple C# script example for a C# class Player. The class Player come with this content into Player.cs C# script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
using UnityEngine; using System.Collections; public class Player : MonoBehaviour { public int level = 1; public int energy = 100; public int health = 100; public int attack = 5; public int defense = 2; //make Save and Load public void Save() { SaveLoadManager.SavePlayer(this); } public void Load() { int[] loadStat = SaveLoadManager.LoadPlayer(); level = loadStat[0]; energy = loadStat[1]; health = loadStat[2]; attack = loadStat[3]; defense = loadStat[4]; } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } } |
To make this C# script for… Read more »
In this tutorials I will show how to deal with lists and enumerations. First you need to make one C# script under Unity 3D. If don’t know how to do… Read more »
Most of the time I used Mono IDE for Unity 3D. Today I show you how to use Unity 3D with Visual Studio 2015. You need to know this solution… Read more »
The new Unity 5.1 is ready for you to download. Some new features can be found here. The Unity 5.1 release come with industry-leading multiplatform support, and unmatched efficiency boosted in… Read more »