Unity Shrunk&Extend models

Advertisemen

Unity Shrunk&Extend models !































DIRECT DOWNLOAD HERE



THIS IS BACKUP  IN TEXT FORM  

1. Create New java and name it : Shrunk&Extend 


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







 function OnTriggerEnter(other : Collider)
 {
   if (other.tag == "Player")


   StartCoroutine(LerpScale(2.0f));// brzina promjene 10 sporije 2 brze
}


function LerpScale(time : float)
{
   var originalScale = transform.localScale;
   var targetScale = originalScale + Vector3(-1.0f, 0.0f, -1.0f); // promjene na obliku
   var originalTime = time;


   while (time > 0.0f)
   {
      time -= Time.deltaTime;


   transform.localScale = Vector3.Lerp(targetScale, originalScale, time / originalTime);
   yield;

   }
}







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








Thanks for watching!
And 
We Need New Talents!
So   Join  Clash of Clans  "Quintessence" clan
Clan tag : #YVCY2GJR
And let's kick some ass !















2 Clan Leader ANGA ,)

















Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Tutorial Unity 3D