SetOwnerPosition() 공개 메소드

public SetOwnerPosition ( Vector3 position ) : void
position UnityEngine.Vector3
리턴 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);
     }
 }