UpdateTime() public method

public UpdateTime ( float factor ) : void
factor float
return void
コード例 #1
0
 public void HandleSplitGroup(Group group)
 {
     if (group.elapsedTime > 1f)
     {
         this.splitGroupList.Remove(group);
     }
     else
     {
         group.SetOwnerPosition(Vector3.Lerp(group.splitOrigin, group.splitOrigin + group.rotationVector, group.elapsedTime));
         group.SetClonePosition(Vector3.Lerp(group.splitOrigin, group.splitOrigin - group.rotationVector, group.elapsedTime));
         group.UpdateTime(1f);
     }
 }
コード例 #2
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);
     }
 }
コード例 #3
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);
     }
 }
コード例 #4
0
 public void HandleSplitGroup(Group group)
 {
     if (group.elapsedTime > 1f) {
         this.splitGroupList.Remove(group);
     }
     else {
         group.SetOwnerPosition(Vector3.Lerp(group.splitOrigin, group.splitOrigin + group.rotationVector, group.elapsedTime));
         group.SetClonePosition(Vector3.Lerp(group.splitOrigin, group.splitOrigin - group.rotationVector, group.elapsedTime));
         group.UpdateTime(1f);
     }
 }