mirror of
https://github.com/chibicitiberiu/frica-de-gaze
synced 2024-02-24 08:23:32 +00:00
Revert "-"
This reverts commit 9819dda592
.
Conflicts:
FricaDeGaze/Library/CurrentLayout.dwlt
FricaDeGaze/Library/assetDatabase3
FricaDeGaze/Library/expandedItems
This commit is contained in:
parent
e75a73912f
commit
96c75a01fc
Binary file not shown.
@ -2,19 +2,33 @@
|
||||
using System.Collections;
|
||||
|
||||
public class misca2 : MonoBehaviour {
|
||||
|
||||
|
||||
public Transform target;
|
||||
IEnumerator Start () {
|
||||
//yield return new WaitForSeconds (0.2f);
|
||||
//float width = camera.pixelWidth;
|
||||
Vector3 dis = transform.position - target.position;
|
||||
float xpos = Random.Range (-dis.x, dis.x);
|
||||
while (xpos+dis.x > target.position.x || xpos+dis.x < -target.position.x )
|
||||
xpos = Random.Range (-target.position.x, target.position.x);
|
||||
float zpos = Random.Range (-target.position.z, target.position.z);
|
||||
while (zpos+dis.z > target.position.z)
|
||||
zpos = Random.Range (-target.position.z, target.position.z);
|
||||
|
||||
Vector3 position = new Vector3(Random.Range(-5.0F, 5.0F), 0, Random.Range(-5.0F, 5.0F));
|
||||
Vector3 position = new Vector3(xpos, 0, zpos);
|
||||
//transform.TransformVector (new Vector3(target.position.x,target.position.y,target.position));
|
||||
|
||||
Vector3 pointA = transform.position;
|
||||
Vector3 pointB = pointA + new Vector3 (0.5f,0,0.5f);
|
||||
//Vector3 pointB = pointA + new Vector3 (0.5f,0,0.5f);
|
||||
while (true) {
|
||||
yield return StartCoroutine(MoveObject(transform, pointA, position, 1.5f));
|
||||
yield return StartCoroutine(MoveObject(transform, position, pointA, 1.5f));
|
||||
position = new Vector3(Random.Range(-5.0F, 5.0F), 0, Random.Range(-5.0F, 5.0F));
|
||||
while (xpos > target.position.x)
|
||||
xpos = Random.Range (-target.position.x, target.position.x);
|
||||
while (zpos > target.position.z || zpos< -target.position.z)
|
||||
zpos = Random.Range (-target.position.z, target.position.z);
|
||||
position.x = xpos;
|
||||
position.y = zpos;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ Global
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
StartupItem = Assembly-CSharp.csproj
|
||||
Policies = $0
|
||||
$0.TextStylePolicy = $1
|
||||
|
@ -29,7 +29,7 @@ Global
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
StartupItem = Assembly-CSharp.csproj
|
||||
Policies = $0
|
||||
$0.TextStylePolicy = $1
|
||||
|
@ -2,10 +2,10 @@
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" PreferredExecutionTarget="MonoDevelop.Default" />
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="Assets\misca2.cs">
|
||||
<Files>
|
||||
<File FileName="Assets\RandomSpider.cs" Line="9" Column="3" />
|
||||
<File FileName="Assets\misca2.cs" Line="13" Column="29" />
|
||||
<File FileName="Assets\RandomSpider.cs" Line="1" Column="1" />
|
||||
<File FileName="Assets\MiscaPaianjen.cs" Line="1" Column="1" />
|
||||
<File FileName="Assets\misca3.cs" Line="1" Column="1" />
|
||||
<File FileName="Assets\misca2.cs" Line="9" Column="3" />
|
||||
<File FileName="Assets\misca3.cs" Line="11" Column="53" />
|
||||
</Files>
|
||||
</MonoDevelop.Ide.Workbench>
|
||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user