UNITY3D WAREHOUSE

WELCOME TO COMMUNITY.

OOOOOMG

I"M SO !!!.

!!!

Coming Soon.

!!!

Coming Soon..

Sunday, 26 April 2015

Unity3D Enable and Disable Light With Key Tutorial 21/24

Unity3D Enable and Disable Light  With Key















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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL 21724
Unity3D Enable and Disable Light  With Key


1. Create New java and name it : EnableandDisableLight


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



function Update () {
if (Input.GetKeyDown (KeyCode.Space))
light.intensity =0;

if (Input.GetKeyUp (KeyCode.Space))
light.intensity =2;
}








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












Enable and Disable Mesh by Space key Tutorial 20/24

Enable and Disable Mesh by Space key
















Tutorial 20/24

This is Video Response 2 User : Mark Zuck
Attempt One lol
After 24 hours of no sleep or 4 hours sleep in bus  Max lol
And I try 2 make tutorila after direct back from trip Zagreb - klagenfurt - Minimundus - Zagreb
Mega LOL
Look part 2 lol
And Look part 2 lol . Tutorial 21/20 LOL MEGA FAIL  :D












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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL

20/24 Enable and Disable Mesh by Space key

1. Create New java and name it : EnableDisableMesh


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





function Update () {
if (Input.GetKeyDown (KeyCode.Space))
renderer.enabled = false;

if (Input.GetKeyUp (KeyCode.Space))
renderer.enabled = true;
}




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


Saturday, 18 April 2015

Unity Capture Screenshot

Unity Capture Screenshot






















DIRECT DOWNLOAD TUTORIAL 19/24  HERE
















THIS IS BACKUP  IN TEXT FORM  TUTORIAL 19/24






 Script  1 :

Play Audio By Key Down F1


1. Create New C# and name it : PlaySoundF1

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


using UnityEngine;
using System.Collections;

[RequireComponent(typeof(AudioSource))]
public class PlaySoundF1 : MonoBehaviour {
void Update() {
if (Input.GetKeyDown(KeyCode.F1)) {
audio.Play();
}
}
}







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











 Script  2 :

Screen Capture By Key Down F1


1. Create New C# and name it : ScreenCaptureF1

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


using UnityEngine;
using System.Collections;

public class ScreenCaptureF1 : MonoBehaviour {
void Awake(){
DontDestroyOnLoad(this);
}
void Update(){
if(Input.GetKey (KeyCode.F1)){
string screenshotIMGName = System.DateTime.Now.ToString();
string subString = screenshotIMGName.Replace ('/','_');
string gypsy = subString.Replace(':','_');

Application.CaptureScreenshot(gypsy+ ".jpg");
}
}
}







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
















Saturday, 11 April 2015

Unity3D Tutorial 18/24 : GUI text appear when mouse hovering on a object.

Unity3D Tutorial 18/24 : GUI text appear when mouse hovering on a object.



























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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL GUI text appear 18/24

1. Create New java and name it : GUIPOPUPTEXT


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


var text = "PUT TEXT HERE";

 private var currentToolTipText = "";
 private var guiStyleFore : GUIStyle;
 private var guiStyleBack : GUIStyle;

 function Start()
 {
     guiStyleFore = new GUIStyle();
     guiStyleFore.normal.textColor = Color.white;
     guiStyleFore.alignment = TextAnchor.UpperCenter ;
     guiStyleFore.wordWrap = true;
     guiStyleBack = new GUIStyle();
     guiStyleBack.normal.textColor = Color.black;
     guiStyleBack.alignment = TextAnchor.UpperCenter ;
     guiStyleBack.wordWrap = true;
 }

 function OnMouseEnter ()
 {

     currentToolTipText = text;
 }

 function OnMouseExit ()
 {
     currentToolTipText = "";
 }

 function OnGUI()
 {
     if (currentToolTipText != "")
     {
         var x = Event.current.mousePosition.x;
         var y = Event.current.mousePosition.y;
         GUI.Label (Rect (x-149,y+40,300,60), currentToolTipText, guiStyleBack);
         GUI.Label (Rect (x-150,y+40,300,60), currentToolTipText, guiStyleFore);
     }
 }








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
















Sunday, 5 April 2015

Unity3D Tutorial Uplifting !

Unity3D Tutorial Uplifting !

Easter video series !







DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL Uplifting !

1. Create New C# and name it : liftup


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


using UnityEngine;

// :) up up you goo
[RequireComponent(typeof(BoxCollider))]
public class liftup : MonoBehaviour 
{
public float lift; //the lifting force applied to player :)
void Awake()
{
collider.isTrigger = true;
}
// lol
//also lift player upwards
void OnTriggerStay(Collider other)
{
if(other.rigidbody)
other.rigidbody.AddForce(Vector3.up * lift, ForceMode.Force);
 }
    }







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

Unity3D Tutorial How do I add sound to Mouse and Keyboard

Unity3D Tutorial How do I add sound to Mouse and Keyboard

Easter video series !












DIRECT DOWNLOAD HERE



Script 1 Off 3  BackUp Form
THIS IS BACKUP  IN TEXT FORM  TUTORIAL add sound to Mouse and Keyboard

1. Create New java and name it : LeftMouseButton


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


#pragma strict

var shootSound:AudioClip;

 function Update(){
   if (Input.GetButtonDown("Fire1")){
     audio.PlayOneShot(shootSound);
   
   }
 }




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













Script 2 Off 3  BackUp Form
THIS IS BACKUP  IN TEXT FORM  TUTORIAL add sound to Mouse and Keyboard

1. Create New java and name it : RightMouseButton


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


#pragma strict

var shootSound:AudioClip;

 function Update(){
   if (Input.GetButtonDown("Fire2")){
     audio.PlayOneShot(shootSound);
   
   }
 }




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










Script 3 Off 3  BackUp Form
THIS IS BACKUP  IN TEXT FORM  TUTORIAL add sound to Mouse and Keyboard

1. Create New java and name it : OnKeyDown


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


#pragma strict

var shootSound:AudioClip;

 function Update(){
   if (Input.GetKeyDown("f")){
     audio.PlayOneShot(shootSound);
   
   }
 }




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





Saturday, 4 April 2015

Unity3D Tutorial Count Down Timer

Unity3D Tutorial Count Down Timer

Easter video series !






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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL Turtorial Count Down Timer

1. Create New java and name it : Count Down Timer


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




var timer : float = 10.0;

function Update()
{

 timer -= Time.deltaTime;

 if(timer <= 0)
 {

    timer = 0;
      //do some cool thing
   
      }
}
// Tints all GUI drawed elements with yellow.
function OnGUI()
{
  GUI.color = Color.yellow;
  GUI.Box(new Rect(600, 20, 50, 20), "" + timer.ToString("0"));
}










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

Unity3D Tutorial Change Level after 10 secs

Unity3D Tutorial Change Level after 10 secs

Easter video series !













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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL: Change Level after 10 secs

1. Create New java and name it : Change Level after 10 secs


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


function Start (){

yield WaitForSeconds (10);

Application.LoadLevel("level3"); // scene2 is your next scene you want to load fill with your level name</p>

}







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











Unity3D Tutorial Main Menu

Unity3D Tutorial Main Menu

Easter video series !

















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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL  DemoMainMenu

1. Create New C# and name it : DemoMainMenu


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


using UnityEngine;
using System.Collections;

public class DemoMainMenu : MonoBehaviour {

private string[] tooltip;

// Use this for initialization
void Start () {
tooltip=new string[8];
//Buton 1 basic info text
tooltip[0]="Basic level ";

//Buton 2 basic info text
tooltip[1]="Level you die in you dream player ";

//Buton 3 basic info text
tooltip[2]="Level with multiple l";

//Buton 4 basic info text
tooltip[3]=" level with multiple  towers";

//Buton 5 basic info text
tooltip[4]="A mazing level";

//Buton 6 basic info text
tooltip[5]=" level  terrain Drag&Drop";

///Buton 7 basic info text
tooltip[6]="level with randomized  waves";

//Buton 8 basic info text
tooltip[7]=" level with ability system";
}

// Update is called once per frame
void Update () {

}

void OnGUI(){
//~

float startY=Screen.height/2-200;
float spaceY=45;

//Buton 1 basic name level1
GUIContent content=new GUIContent("Level 1", "1");
if(GUI.Button(new Rect(Screen.width/2-60, startY+=spaceY, 120, 35), content)){
Application.LoadLevel("level1");
}


//Buton 2 basic name level1
content=new GUIContent("Leve 2", "2");
if(GUI.Button(new Rect(Screen.width/2-60, startY+=spaceY, 120, 35), content)){
Application.LoadLevel("level2");
}


//Buton 3 basic name level1
content=new GUIContent("Leve 3", "3");
if(GUI.Button(new Rect(Screen.width/2-60, startY+=spaceY, 120, 30), content)){
Application.LoadLevel("put level 3 your level name here");
}
content=new GUIContent("Leve 4", "4");
if(GUI.Button(new Rect(Screen.width/2-60, startY+=spaceY, 120, 35), content)){
Application.LoadLevel("put level 4 your level name here");
}


//Buton 4 basic name level1
content=new GUIContent("Leve 5", "5");
if(GUI.Button(new Rect(Screen.width/2-60, startY+=spaceY, 120, 35), content)){
Application.LoadLevel("put level 5 your level name here");
}



//Buton 5 basic name level1
content=new GUIContent("Leve 6", "6");
if(GUI.Button(new Rect(Screen.width/2-60, startY+=spaceY, 120, 35), content)){
Application.LoadLevel("put level 6 your level name here");
}



//Buton 6 basic name level1
content=new GUIContent("Leve 7", "7");
if(GUI.Button(new Rect(Screen.width/2-60, startY+=spaceY, 120, 35), content)){
Application.LoadLevel("put level 7 your level name here");
}



//Buton 7 basic name level1
content=new GUIContent("Leve 8", "8");
if(GUI.Button(new Rect(Screen.width/2-60, startY+=spaceY, 120, 35), content)){
Application.LoadLevel("put level 8 your level name here");
}





if(GUI.tooltip!=""){
int ID=int.Parse(GUI.tooltip)-1;

GUIStyle style=new GUIStyle();
style.alignment=TextAnchor.UpperCenter;
style.fontStyle=FontStyle.Bold;
style.normal.textColor=Color.white;

GUI.Label(new Rect(0, Screen.height*0.75f+70, Screen.width, 200), tooltip[ID], style);
}
}
}







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

Unity3D Tutorial FPS Counter

Unity3D Tutorial FPS Counter
Easter video series !

















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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL FpsCounter

1. Create New C# and name it : FpsCounter


2. Copy & Past this text and save  C#
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


using UnityEngine;
using System.Collections;

public class FpsCounter : MonoBehaviour
{
private const float FPS_UPDATE_INTERVAL = 0.5f;
private float fpsAccum = 0;
private int fpsFrames = 0;
private float fpsTimeLeft = FPS_UPDATE_INTERVAL;
private float fps = 0;

void Update()
{
fpsTimeLeft -= Time.deltaTime;
fpsAccum += Time.timeScale / Time.deltaTime;
fpsFrames++;

if (fpsTimeLeft <= 0)
{
fps = fpsAccum / fpsFrames;
fpsTimeLeft = FPS_UPDATE_INTERVAL;
fpsAccum = 0;
fpsFrames = 0;
}
}

void OnGUI()
{
GUILayout.BeginArea(new Rect(5, 5, 500, 500));
GUILayout.Label("FPS: " + fps.ToString("f1"));
GUILayout.EndArea();
}
}








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

Unity3D Tutorial Game instructions

Unity3D Tutorial Game instructions

Easter video series !








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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL  Game instructions1

1. Create New C# and name it : GameInstruction


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


using UnityEngine;
using System.Collections;

public class GameInstruction : MonoBehaviour {

private string camInst="";
private bool show=false;
// Use this for display your text on monitor
void Start () {
camInst="";
camInst+="- w,a,s,d key 2 move your player on map ";
camInst+="- right click and kill your self \n";
camInst+="- mouse scrole wheel to die\n";
camInst+="- touch monitor with your head 2 play game\n";
camInst+="- w,a,s,d key 2 move your player on map ";
camInst+="- right click and kill your self \n";
camInst+="- mouse scrole wheel to die\n";
camInst+="- touch monitor with your head 2 play game\n";
camInst+="\n iff you read this text you rule dude \n";
camInst+="\n put your text here and make use of info buton yoes you will ";
camInst+="\n iff you read this text you rule dude \n";
camInst+="\n put your text here and make use of info buton yoes you will ";
//camInst+="\n- mouse will kill your table on night\n";
}
// Update is called once per frame
void Update () {
}
void OnGUI(){
if(GUI.Button(new Rect(Screen.width- 45, 10, 35, 35), "!")){
show=!show;
}
if(show) GUI.Label(new Rect(Screen.width-310, 50, 300, 500), camInst);
}
}






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

Unity3D Tutorial RandomSpawnPrefab

Unity3D Tutorial RandomSpawnPrefab

Easter video series !











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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL Random2Prefabs

1. Create New java and name it : Random2Prefabs


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





var DragHerePrefab1:GameObject;

var DragHerePrefab2:GameObject;



function Start () {
var BlockNumber:int = UnityEngine.Random.Range(1,3);

if(BlockNumber == 1){
var Block:GameObject = Instantiate(DragHerePrefab1, transform.position, transform.rotation);
}

if(BlockNumber == 2){
Instantiate(DragHerePrefab2, transform.position, transform.rotation);
}



}







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

Unity3D Tutorial Restart Level

Unity3D Tutorial Restart Level

Easter video series !











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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL Restart Level

1. Create New java and name it : RestartLevel


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


#pragma strict

 function OnGUI () {
 
 if ( GUI.Button( Rect( 1, Screen.height-25, 75, 25 ), "Restart" )) {
 
 Application.LoadLevel(Application.loadedLevel);
 
   }
 }







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

Unity3D Tutorial Smooth Look At

Unity3D Tutorial Smooth Look  At

Easter video series !













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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL Smooth Look  At

1. Create New java and name it : SmoothLookAt


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


var target : Transform;
var damping = 6.0;
var smooth = true;

@script AddComponentMenu("Camera-Control/Smooth Look At")

function LateUpdate () {
if (target) {
if (smooth)
{
// Look at and dampen the rotation
var rotation = Quaternion.LookRotation(target.position - transform.position);
transform.rotation = Quaternion.Slerp(transform.rotation, rotation, Time.deltaTime * damping);
}
else
{
// Just lookat
   transform.LookAt(target);
}
}
}

function Start () {
// Make the rigid body not change rotation
    if (rigidbody)
rigidbody.freezeRotation = true;
}







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

Unity3d Tutorial Slow Motion

Unity3d Tutorial Slow Motion

Easter video series !










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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL SlowMotion

1. Create New java and name it : SlowMotion


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


var slowMoIn : AudioClip;
var slowMoOut : AudioClip;   
   
function Update(){
if (Input.GetKeyDown (KeyCode.S)) {
if (Time.timeScale == 1.0){ 
Time.timeScale = 0.3;
}else{
Time.timeScale = 1.0;
Time.fixedDeltaTime = 0.02 * Time.timeScale;
}
var aSources = FindObjectsOfType(AudioSource);
for (aSource in aSources)
aSource.pitch = Time.timeScale;
if (Time.timeScale == 1.0) PlayAudioClip(slowMoOut, transform.position, 1.0);
else PlayAudioClip(slowMoIn, transform.position, 1.0);
    }
}

function PlayAudioClip (clip : AudioClip, position : Vector3, volume : float) {
    var go = new GameObject ("One shot audio");
    go.transform.position = position;
    var source : AudioSource = go.AddComponent (AudioSource);
    source.clip = clip;
    source.volume = volume;
source.pitch = 1.0;
    source.Play ();
    Destroy (go, clip.length);
    return source;
}







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

Unity3D Tutorial Fade Out Camera

Unity3D Tutorial Fade Out Camera


Easter video series !









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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL FadeOutCamera

1. Create New java and name it : FadeOutCamera


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



var fadeTime : float = 5;
var fadeTexture : Texture;
private var fadeOut : boolean = false;
private var tempTime : float;
private var time : float = 0.0;
var fadeOutSound : AudioClip;

function Start(){
fadeOut = true;
audio.clip = fadeOutSound;
audio.Play();
}


function Update(){
if (fadeOut){
if(time < fadeTime) time += Time.deltaTime;
tempTime = Mathf.InverseLerp(0.0, fadeTime, time);
}

if(tempTime >= 1.0) enabled = false;
}

function OnGUI(){
if(fadeOut){
GUI.color.a = 1 - tempTime;
GUI.DrawTexture(Rect(0, 0, Screen.width, Screen.height), fadeTexture);
}
}







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



Unity3D Tutorial Fade Light

Unity3D Tutorial Fade Light

Easter video series !









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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL FadeLight

1. Create New java and name it : FadeLight


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


#pragma strict
#pragma implicit
#pragma downcast

class FadeLight extends MonoBehaviour
{
public var delay : float;
public var fadeTime : float;
private var fadeSpeed : float;
private var intensity : float;
private var color : Color;
function Start()
{
if(light == null)
{
Destroy(this);
return;
}
intensity = light.intensity;
fadeTime = Mathf.Abs(fadeTime);
if(fadeTime > 0.0)
{
fadeSpeed = intensity / fadeTime;
}
else
{
fadeSpeed = intensity;
}
//alpha = 1.0;
}
function Update()
{
if(delay > 0.0)
{
delay -= Time.deltaTime;
}
else if(intensity > 0.0)
{
intensity -= fadeSpeed * Time.deltaTime;
light.intensity = intensity;
}
}
}







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

Unity3D Scroll Credit Tutorial

Unity3D Scroll Credit Tutorial

Easter video series !



























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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL  Scroll Credit

1. Create New java and name it : credit


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


 function FixedUpdate () {
     transform.localPosition.z += 1 * Time.deltaTime;
     transform.localPosition.y += 0.5 * Time.deltaTime;
 }








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

Unity3D Tutorial Mute Audio

Unity3D Tutorial Mute Audio

Easter video series !





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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL  Mute Audio

1. Create New java and name it : MutestheAudioSource


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


#pragma strict

// Mutes-Unmutes the sound of this transfor each time the user presses space.

function Update() {
if(Input.GetKeyDown(KeyCode.M)) {
if(audio.mute)
audio.mute = false;
else
audio.mute = true;
}
}







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

Unity3D tutorial 2/24 Custom Cursor

Unity3D tutorial Custom Cursor

Easter video series !






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

DIRECT DOWNLOAD HERE




Unity3D turtorial  Custom Cursor

THIS IS BACKUP  IN TEXT FORM

1. Create New C# and name it : CustomCursor


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


using UnityEngine;
using System.Collections;
 
public class CustomCursor : MonoBehaviour  
{
    //The texture that's going to replace the current cursor
    public Texture2D cursorTexture;
 
    //This variable flags whether the custom cursor is active or not
    public bool ccEnabled = false;
 
    void Start()
    {
        //Call the 'SetCustomCursor' (see below) with a delay of 2 seconds.  
        Invoke("SetCustomCursor",2.0f);
    }
 
    void OnDisable()  
    {
        //Resets the cursor to the default
        Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
        //Set the _ccEnabled variable to false
        this.ccEnabled = false;
    }
 
    private void SetCustomCursor()
    {
        //Replace the 'cursorTexture' with the cursor  
        Cursor.SetCursor(this.cursorTexture, Vector2.zero, CursorMode.Auto);
        Debug.Log("Custom cursor has been set.");
        //Set the ccEnabled variable to true
        this.ccEnabled = true;
    }
}







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

Unity3D Turtorial 1/24 Open Url

Unity3D Turtorial Open Url

Easter video series !








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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  Unity3D Turtorial 1/24 Open Url 

1. Create New C# and name it : OPENURL


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




using UnityEngine;
using System.Collections;

public class OPENURL : MonoBehaviour 
{
void OnGUI()
{
if(GUI.Button(new Rect(Screen.width-110,Screen.height-40,100,30),"Go to www..."))
{
Application.OpenURL("https://www.youtube.com/");
}
}
}








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

Friday, 3 April 2015

Unity3DTurtorial: 28 Destroy Everything

Unity3D Turtorial: 28 Destroy-Everything

+
Announcement









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

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL 28 

1. Create New java and name it : DestroyEverything


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


#pragma strict

// Destroy everything that enters the trigger

function OnTriggerEnter (other : Collider) {
Destroy(other.gameObject);
}







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