Initial Commit
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
namespace Zenject.Asteroids
|
||||
{
|
||||
public class ShipCrashedSignal
|
||||
{
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 44a6c869bd4f68c479f02155b98fbeca
|
||||
timeCreated: 1483817409
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Zenject.Asteroids
|
||||
{
|
||||
public static class UnityExtensionMethods
|
||||
{
|
||||
// Since transforms return their position as a property,
|
||||
// you can't set the x/y/z values directly, so you have to
|
||||
// store a temporary Vector3
|
||||
// Or you can use these methods instead
|
||||
public static void SetX(this Transform transform, float x)
|
||||
{
|
||||
var pos = transform.position;
|
||||
pos.x = x;
|
||||
transform.position = pos;
|
||||
}
|
||||
|
||||
public static void SetY(this Transform transform, float y)
|
||||
{
|
||||
var pos = transform.position;
|
||||
pos.y = y;
|
||||
transform.position = pos;
|
||||
}
|
||||
|
||||
public static void SetZ(this Transform transform, float z)
|
||||
{
|
||||
var pos = transform.position;
|
||||
pos.z = z;
|
||||
transform.position = pos;
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1018c66230d7f7b408485a0d8c28147d
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
Reference in New Issue
Block a user