UNITY3D WAREHOUSE

WELCOME TO COMMUNITY.

OOOOOMG

I"M SO !!!.

!!!

Coming Soon.

!!!

Coming Soon..

Wednesday, 15 July 2015

Unity 3D Day And Night Cycle Simple

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 :






































----------------------------------------­­­­­------------------------------------­-­-­-­-­-


P.S

1. Unplug from the Internet
2. GOOOO   outside It's Summertime  
3. In the Name of Summer
4. Go out and Chill!
    See you after summer !!! ,)











Sunday, 21 June 2015

Unity Collect x amount 2 unlock level

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);}


 }

 ----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------



SCRIPT 2.  gameobjects

1. Create New C# and name it : gameobjects
2. Copy & Past this text and save :

----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------

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);
}
}

}



----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------

Wednesday, 17 June 2015

Unity 3D Android Pause Game !

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;

 }
 }
 }
 }
 }
 }






 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-















Saturday, 6 June 2015

Unity3D Dissolve On Collision

Unity3D Dissolve On Collision














THIS IS C# script: GOOD 4 2D GAMES AND 3D GAMES !
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------

DIRECT DOWNLOAD HERE






Sunday, 31 May 2015

Unity3D Scrolling Background

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

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;
     }
 }







 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-





















Friday, 15 May 2015

Unity 3D Make Water Waves Tutorial 22/24

Unity 3D Make Water Waves











THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL 22/24 Script Make Water Waves

1. Create New java and name it : MakeWaterWaves


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


//


var speed = 1.0;
var Height = 10.0;
private var baseHeight : Vector3[];
var useOriginal : boolean = false;


function Update () {
var mesh : Mesh = GetComponent(MeshFilter).mesh;

if (baseHeight == null)
baseHeight = mesh.vertices;

//

var vertices = new Vector3[baseHeight.Length];
for (var i=0;i<vertices.Length;i++)
{
var vertex = baseHeight[i];

if (useOriginal) {
vertex.y += Mathf.Sin(Time.time * speed+ baseHeight[i].x + baseHeight[i].y + baseHeight[i].z) * Height;
} else {
vertex.y += Mathf.Sin(Time.time * speed+ baseHeight[i].x + baseHeight[i].y) * (Height*.5) + Mathf.Sin(Time.time * speed+ baseHeight[i].z + baseHeight[i].y) * (Height*.5);
}

vertices[i] = vertex;
}
mesh.vertices = vertices;
mesh.RecalculateNormals();

gameObject.Destroy(GetComponent(MeshCollider));

var collider : MeshCollider = GetComponent(MeshCollider);
if (collider == null) {
collider = gameObject.AddComponent(MeshCollider);
collider.isTrigger = true;
}

}








 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-