UNITY3D WAREHOUSE
WELCOME TO COMMUNITY.
OOOOOMG
I"M SO !!!.
!!!
Coming Soon.
!!!
Coming Soon..
Coming Soon..
!!!.
Thursday, 6 August 2015
Wednesday, 15 July 2015
Unity 3D Day And Night Cycle Simple
10:52
86 comments
Unity 3D Day And Night Cycle Simple
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL 2015/S1
THIS IS C# scrip: GOOD 4 2D GAMES !
--------------------------------------------------------------------------------------
1. Create New C# and name it : DayNightCycle
2. Copy & Past this text and save C# :
---------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
public class DayNightCycle : MonoBehaviour
{
public Light DirectionLight;
public Texture2D LightColor;
public Texture2D SkyColor;
public Texture2D AmbientColor;
public float TimeOfDay = 1;
[Range(0, 1)]
public float Timer = 0;
private float timeTemp = 0;
private float fade = 0;
public bool FadeTime = true;
public float MaxFade = 20;
void Start ()
{
timeTemp = Time.time;
fade = Timer;
}
void Update ()
{
if (Network.isServer || (!Network.isClient && !Network.isServer)) {
if (FadeTime) {
float timeperfade = TimeOfDay / MaxFade;
if (Time.time >= timeTemp + timeperfade) {
timeTemp = Time.time;
fade += 1.0f / MaxFade;
}
if (fade > 1.0f) {
fade = 0;
Timer = 0;
}
Timer += (fade - Timer) / 10f;
} else {
if (Timer > 1) {
Timer = 0;
} else {
Timer += (1.0f * Time.deltaTime) * (1.0f / TimeOfDay);
}
}
}
Color skyColor = SkyColor.GetPixelBilinear (Timer, 0);
RenderSettings.skybox.SetColor ("_Tint", skyColor);
RenderSettings.fogColor = skyColor;
RenderSettings.ambientLight = AmbientColor.GetPixelBilinear (Timer, 0);
DirectionLight.color = LightColor.GetPixelBilinear (Timer, 0);
}
}
---------------------------------------------------------------------------------
And Textures are here :
---------------------------------------------------------------------------------
And Helpers are here :
---------------------------------------------------------------------------------
4. Go out and Chill!
See you after summer !!! ,)

DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL 2015/S1
THIS IS C# scrip: GOOD 4 2D GAMES !
--------------------------------------------------------------------------------------
1. Create New C# and name it : DayNightCycle
2. Copy & Past this text and save C# :
---------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
public class DayNightCycle : MonoBehaviour
{
public Light DirectionLight;
public Texture2D LightColor;
public Texture2D SkyColor;
public Texture2D AmbientColor;
public float TimeOfDay = 1;
[Range(0, 1)]
public float Timer = 0;
private float timeTemp = 0;
private float fade = 0;
public bool FadeTime = true;
public float MaxFade = 20;
void Start ()
{
timeTemp = Time.time;
fade = Timer;
}
void Update ()
{
if (Network.isServer || (!Network.isClient && !Network.isServer)) {
if (FadeTime) {
float timeperfade = TimeOfDay / MaxFade;
if (Time.time >= timeTemp + timeperfade) {
timeTemp = Time.time;
fade += 1.0f / MaxFade;
}
if (fade > 1.0f) {
fade = 0;
Timer = 0;
}
Timer += (fade - Timer) / 10f;
} else {
if (Timer > 1) {
Timer = 0;
} else {
Timer += (1.0f * Time.deltaTime) * (1.0f / TimeOfDay);
}
}
}
Color skyColor = SkyColor.GetPixelBilinear (Timer, 0);
RenderSettings.skybox.SetColor ("_Tint", skyColor);
RenderSettings.fogColor = skyColor;
RenderSettings.ambientLight = AmbientColor.GetPixelBilinear (Timer, 0);
DirectionLight.color = LightColor.GetPixelBilinear (Timer, 0);
}
}
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
P.S
1. Unplug from the Internet
2. GOOOO outside It's Summertime
3. In the Name of Summer4. Go out and Chill!
See you after summer !!! ,)

Sunday, 21 June 2015
Unity Collect x amount 2 unlock level
06:29
3 comments
Unity3D Collect x amount 2 unlock level
THIS IS Java# script: And C# GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM
--------------------------------------------------------------------------------------
FOLDER PUT ON YOUR COIN
--------------------------------------------------------------------------------------
SCRIPT 1 .
1. Create New C# and name it : CoinRotation
2. Copy & Past this text and save C# :
--------------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
public class CoinRotation : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update()
{
gameObject.transform.Rotate(0, 0, 5);
}
}
--------------------------------------------------------------------------------------
SCRIPT 2. DisableMeshOnCoin
1. Create New Java and name it : DisableMeshOnCoin
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
#pragma strict
function OnTriggerEnter(Trigger : Collider)
{
if (Trigger.tag == "Player")
{
renderer.enabled = false;
}
}
--------------------------------------------------------------------------------------
SCRIPT 3. GUIAppear
1. Create New Java and name it : GUIAppear
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
#pragma strict
private var guiShow : boolean = false;
var PutTextureHere : Texture;
function OnTriggerStay (Col : Collider)
{
if(Col.tag == "Player")
{
guiShow = true;
}
}
function OnGUI()
{
if(guiShow == true)
{
GUI.DrawTexture(new Rect(Screen.width / 2, Screen.height - Screen.height,248,46), PutTextureHere);
}
}
--------------------------------------------------------------------------------------
SCRIPT 4. PlayAudioOnCoin
1. Create New Java and name it : PlayAudioOnCoin
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
#pragma strict
@script RequireComponent(AudioSource)
public var clip : AudioClip;
function OnTriggerEnter(hit : Collider){
audio.PlayClipAtPoint(clip, Vector3 (5, 1, 2));
}
--------------------------------------------------------------------------------------
And Here Are Some FREE graphic design materials :)
THIS IS BACKUP IN TEXT FORM
--------------------------------------------------------------------------------------
FOLDER PUT ON YOUR PLAYER
--------------------------------------------------------------------------------------
SCRIPT 1. ChAftAllCollCoins
1. Create New Java and name it : ChAftAllCollCoins
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
#pragma strict
var level:int;
function OnTriggerEnter( other : Collider ) { if (other.tag == "Coin") yield WaitForSeconds (0.9); { Destroy(other.gameObject); } }
function Update () { print(GameObject.FindGameObjectsWithTag("Coin").Length);
if(GameObject.FindGameObjectsWithTag("Coin").Length==0) {Application.LoadLevel(level);}
}
--------------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
public class gameobjects : MonoBehaviour {
// Use this for initialization
int CoinLeft = 0;
bool killedAllCoin = false;
void Start () {
CoinLeft = 10; // or whatever;
}
// Update is called once per frame
void Update () {
GameObject[] Coin = GameObject.FindGameObjectsWithTag("Coin");
CoinLeft = Coin.Length;
if(Input.GetKeyDown(KeyCode.F1))
{
CoinLeft --;
}
if(CoinLeft == 0)
{
endGame();
}
}
void endGame()
{
killedAllCoin = true;
}
void OnGUI()
{
if(killedAllCoin)
{
GUI.Label(new Rect (0,0,200,20),"all gone");
}
else
{
GUI.Label(new Rect (0,0,200,20),"Coin Remaining : " + CoinLeft);
}
}
}
THIS IS BACKUP IN TEXT FORM
--------------------------------------------------------------------------------------
FOLDER PUT ON YOUR COIN
--------------------------------------------------------------------------------------
SCRIPT 1 .
1. Create New C# and name it : CoinRotation
2. Copy & Past this text and save C# :
--------------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
public class CoinRotation : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update()
{
gameObject.transform.Rotate(0, 0, 5);
}
}
SCRIPT 2. DisableMeshOnCoin
1. Create New Java and name it : DisableMeshOnCoin
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
#pragma strict
function OnTriggerEnter(Trigger : Collider)
{
if (Trigger.tag == "Player")
{
renderer.enabled = false;
}
}
SCRIPT 3. GUIAppear
1. Create New Java and name it : GUIAppear
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
#pragma strict
private var guiShow : boolean = false;
var PutTextureHere : Texture;
function OnTriggerStay (Col : Collider)
{
if(Col.tag == "Player")
{
guiShow = true;
}
}
function OnGUI()
{
if(guiShow == true)
{
GUI.DrawTexture(new Rect(Screen.width / 2, Screen.height - Screen.height,248,46), PutTextureHere);
}
}
SCRIPT 4. PlayAudioOnCoin
1. Create New Java and name it : PlayAudioOnCoin
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
#pragma strict
@script RequireComponent(AudioSource)
public var clip : AudioClip;
function OnTriggerEnter(hit : Collider){
audio.PlayClipAtPoint(clip, Vector3 (5, 1, 2));
}
And Here Are Some FREE graphic design materials :)
--------------------------------------------------------------------------------------
FOLDER PUT ON YOUR PLAYER
--------------------------------------------------------------------------------------
SCRIPT 1. ChAftAllCollCoins
1. Create New Java and name it : ChAftAllCollCoins
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
#pragma strict
var level:int;
function OnTriggerEnter( other : Collider ) { if (other.tag == "Coin") yield WaitForSeconds (0.9); { Destroy(other.gameObject); } }
function Update () { print(GameObject.FindGameObjectsWithTag("Coin").Length);
if(GameObject.FindGameObjectsWithTag("Coin").Length==0) {Application.LoadLevel(level);}
}
--------------------------------------------------------------------------------------
SCRIPT 2. gameobjects
1. Create New C# and name it : gameobjects
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
1. Create New C# and name it : gameobjects
2. Copy & Past this text and save :
--------------------------------------------------------------------------------------
using System.Collections;
public class gameobjects : MonoBehaviour {
// Use this for initialization
int CoinLeft = 0;
bool killedAllCoin = false;
void Start () {
CoinLeft = 10; // or whatever;
}
// Update is called once per frame
void Update () {
GameObject[] Coin = GameObject.FindGameObjectsWithTag("Coin");
CoinLeft = Coin.Length;
if(Input.GetKeyDown(KeyCode.F1))
{
CoinLeft --;
}
if(CoinLeft == 0)
{
endGame();
}
}
void endGame()
{
killedAllCoin = true;
}
void OnGUI()
{
if(killedAllCoin)
{
GUI.Label(new Rect (0,0,200,20),"all gone");
}
else
{
GUI.Label(new Rect (0,0,200,20),"Coin Remaining : " + CoinLeft);
}
}
}
--------------------------------------------------------------------------------------
Wednesday, 17 June 2015
Unity 3D Android Pause Game !
13:59
No comments
Unity 3D Android Pause Game !
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL
1. Create New java and name it : PauseUpgrade
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
#pragma strict
var pause : boolean = false;
function Update () {
for(var i:int = 0; i < Input.touches.Length; i++)//How many touches do we have?
{
var touch:Touch = Input.touches[i];//The touch
var ray:Ray = Camera.main.ScreenPointToRay(touch.position);
var hit:RaycastHit = new RaycastHit();
if(Physics.Raycast(ray,hit, 1000))
{
if(hit.collider.gameObject == this.gameObject)
{
switch(touch.phase)
{
case TouchPhase.Began://if the touch begins
if (pause == false)
{
pause = true ;
Time.timeScale = 1 ;
return;
}
if (pause == true)
{
pause = false;
Time.timeScale = 0 ;
return;
}
}
}
}
}
}
---------------------------------------------------------------------------------
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL
1. Create New java and name it : PauseUpgrade
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
#pragma strict
var pause : boolean = false;
function Update () {
for(var i:int = 0; i < Input.touches.Length; i++)//How many touches do we have?
{
var touch:Touch = Input.touches[i];//The touch
var ray:Ray = Camera.main.ScreenPointToRay(touch.position);
var hit:RaycastHit = new RaycastHit();
if(Physics.Raycast(ray,hit, 1000))
{
if(hit.collider.gameObject == this.gameObject)
{
switch(touch.phase)
{
case TouchPhase.Began://if the touch begins
if (pause == false)
{
pause = true ;
Time.timeScale = 1 ;
return;
}
if (pause == true)
{
pause = false;
Time.timeScale = 0 ;
return;
}
}
}
}
}
}
---------------------------------------------------------------------------------
Saturday, 6 June 2015
Unity3D Dissolve On Collision
13:51
1 comment
Unity3D Dissolve On Collision
THIS IS C# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS C# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
Sunday, 31 May 2015
Unity3D Scrolling Background
00:44
No comments
Unity3D Scroll Background !
THIS IS C# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL 23/24
1. Create New C# and name it : ScrollBackground
2. Copy & Past this text and save C# :
---------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
public class ScrollBackground : MonoBehaviour
{
public float scrollSpeed = 0.05F; // speed
void Update()
{
//smooth
float offset = Time.time * scrollSpeed;
//texture offset
renderer.material.mainTextureOffset = new Vector2(offset, 0);
}
}
---------------------------------------------------------------------------------
Sunday, 24 May 2015
Unity3D Enemy Alert System
04:52
No comments
Unity3D Enemy Alert System
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL 23/24 Script 1
1. Create New java and name it : Color
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
#pragma strict
// Fade the color from red to green
// back and forth over the defined duration
var colorStart : Color = Color.red;
var colorEnd : Color = Color.green;
var duration : float = 1.0;
var rend: Renderer;
function Start() {
rend = GetComponent.<Renderer>();
}
function Update () {
var lerp: float = Mathf.PingPong(Time.time, duration) / duration;
rend.material.color = Color.Lerp(colorStart, colorEnd, lerp);
}
---------------------------------------------------------------------------------
THIS IS BACKUP IN TEXT FORM TUTORIAL 23/24 Script 2
1. Create New java and name it : EnableDisableObjectMesh
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
#pragma strict
function Start()
{
renderer.enabled = false;
}
function OnTriggerStay(Trigger : Collider)
{
if (Trigger.collider.tag == "enemy")
{
renderer.enabled = true;
Debug.Log("OK");
}
}
function OnTriggerExit ( other : Collider )
{
if ( other.gameObject.tag == "enemy" )
{
renderer.enabled = false;
}
}
---------------------------------------------------------------------------------
THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
--------------------------------------------------------------------------------------
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM TUTORIAL 23/24 Script 1
1. Create New java and name it : Color
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
#pragma strict
// Fade the color from red to green
// back and forth over the defined duration
var colorStart : Color = Color.red;
var colorEnd : Color = Color.green;
var duration : float = 1.0;
var rend: Renderer;
function Start() {
rend = GetComponent.<Renderer>();
}
function Update () {
var lerp: float = Mathf.PingPong(Time.time, duration) / duration;
rend.material.color = Color.Lerp(colorStart, colorEnd, lerp);
}
---------------------------------------------------------------------------------
THIS IS BACKUP IN TEXT FORM TUTORIAL 23/24 Script 2
1. Create New java and name it : EnableDisableObjectMesh
2. Copy & Past this text and save java :
---------------------------------------------------------------------------------
#pragma strict
function Start()
{
renderer.enabled = false;
}
function OnTriggerStay(Trigger : Collider)
{
if (Trigger.collider.tag == "enemy")
{
renderer.enabled = true;
Debug.Log("OK");
}
}
function OnTriggerExit ( other : Collider )
{
if ( other.gameObject.tag == "enemy" )
{
renderer.enabled = false;
}
}
---------------------------------------------------------------------------------
Subscribe to:
Posts (Atom)























































