Refonte total du site
Refonte total du site.
Dans cette nouvelle version, je vais y inclure de petit tuto sur Construct 2 , ainsi que sur Unity.
Exemple de script sous Unity en C# :
Code CPP :
//Script created by: http://Danim.TV using UnityEngine; using System.Collections; public class ShowGizmo : MonoBehaviour { public enum GIZMOS { ShowOnSelectedGizmo = 0, AlwaysShowGizmo = 1 } public GIZMOS showGizmos = GIZMOS.AlwaysShowGizmo; public float size = 0.5f; public Color color = Color.white; public bool show; void OnDrawGizmosSelected() { Gizmos.color = color; if (showGizmos == GIZMOS.ShowOnSelectedGizmo) Gizmos.DrawWireSphere(transform.position, size); } void OnDrawGizmos() { Gizmos.color = color; if (showGizmos == GIZMOS.AlwaysShowGizmo) Gizmos.DrawWireSphere(transform.position, size); } }
A bientôt.