Wednesday, 25 November 2015

Unity Shrunk&Extend models

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 ,)

















0 comments:

Post a Comment