SetOwnerScale() public method

public SetOwnerScale ( Vector3 scale ) : void
scale UnityEngine.Vector3
return void
Example #1
0
 public void HandleMergeGroup(Group group)
 {
     if (group.elapsedTime > 1f)
     {
         this.mergeGroupList.Remove(group);
     }
     else
     {
         group.SetOwnerPosition(Vector3.Lerp(group.ownerOriginalPosition, group.mergeOrigin, group.elapsedTime));
         group.SetClonePosition(Vector3.Lerp(group.cloneOriginalPosition, group.mergeOrigin, group.elapsedTime));
         group.SetOwnerScale(Vector3.Lerp(group.ownerOriginalScale, group.ownerNewScale, group.elapsedTime));
         group.SetCloneScale(Vector3.Lerp(group.ownerOriginalScale, group.ownerNewScale, group.elapsedTime));
         group.UpdateTime(1f);
     }
 }
 public void HandleMergeGroup(Group group)
 {
     if (group.elapsedTime > 1f) {
         this.mergeGroupList.Remove(group);
     }
     else {
         group.SetOwnerPosition(Vector3.Lerp(group.ownerOriginalPosition, group.mergeOrigin, group.elapsedTime));
         group.SetClonePosition(Vector3.Lerp(group.cloneOriginalPosition, group.mergeOrigin, group.elapsedTime));
         group.SetOwnerScale(Vector3.Lerp(group.ownerOriginalScale, group.ownerNewScale, group.elapsedTime));
         group.SetCloneScale(Vector3.Lerp(group.ownerOriginalScale, group.ownerNewScale, group.elapsedTime));
         group.UpdateTime(1f);
     }
 }