- Updated Human prefab

- Updated scene Integration
- Updated VampireSquadPrefab
- Updated scene Squad
This commit is contained in:
samJa 2015-08-21 15:03:26 -04:00
parent f32a2faa5d
commit ae2750836d
14 changed files with 16850 additions and 9424 deletions

View File

@ -45,6 +45,7 @@ GameObject:
- 223: {fileID: 22333740}
- 114: {fileID: 11427060}
- 114: {fileID: 11497496}
- 114: {fileID: 11493852}
m_Layer: 0
m_Name: HPCanvas
m_TagString: Untagged
@ -115,6 +116,18 @@ MonoBehaviour:
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
--- !u!114 &11493852
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 174992}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ee7477dacce28f94aba6c7b0edc4da87, type: 3}
m_Name:
m_EditorClassIdentifier:
TargetCamera: {fileID: 0}
--- !u!114 &11497496
MonoBehaviour:
m_ObjectHideFlags: 1

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 4cf1614d9b46f2848a2b47afe79f2f56
timeCreated: 1439652850
guid: b9ac83faf6cd8994a9d277d9c950be6e
timeCreated: 1440182904
licenseType: Free
NativeFormatImporter:
userData:

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 399d6675ad4fa384096256e051a3e131
timeCreated: 1440178689
timeCreated: 1440179661
licenseType: Free
NativeFormatImporter:
userData:

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 7f5390bf3f9aa514eac25888e0bd7723
timeCreated: 1440178699
timeCreated: 1440179663
licenseType: Free
NativeFormatImporter:
userData:

File diff suppressed because it is too large Load Diff

View File

@ -313,38 +313,42 @@ Prefab:
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 436582, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
- target: {fileID: 460096, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
propertyPath: m_LocalPosition.x
value: 10
objectReference: {fileID: 0}
- target: {fileID: 436582, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
- target: {fileID: 460096, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 436582, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
- target: {fileID: 460096, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 436582, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
- target: {fileID: 460096, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 436582, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
- target: {fileID: 460096, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
propertyPath: m_LocalRotation.y
value: -.707106829
objectReference: {fileID: 0}
- target: {fileID: 436582, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
- target: {fileID: 460096, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 436582, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
- target: {fileID: 460096, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
propertyPath: m_LocalRotation.w
value: .707106709
objectReference: {fileID: 0}
- target: {fileID: 436582, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
- target: {fileID: 460096, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 11423354, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
propertyPath: TargetCamera
value:
objectReference: {fileID: 272569012}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 7f5390bf3f9aa514eac25888e0bd7723, type: 2}
m_IsPrefabParent: 0
@ -498,38 +502,42 @@ Prefab:
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 459524, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
- target: {fileID: 433518, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 459524, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
- target: {fileID: 433518, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 459524, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
- target: {fileID: 433518, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 459524, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
- target: {fileID: 433518, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 459524, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
- target: {fileID: 433518, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
propertyPath: m_LocalRotation.y
value: .707106829
objectReference: {fileID: 0}
- target: {fileID: 459524, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
- target: {fileID: 433518, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 459524, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
- target: {fileID: 433518, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
propertyPath: m_LocalRotation.w
value: .707106709
objectReference: {fileID: 0}
- target: {fileID: 459524, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
- target: {fileID: 433518, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 11447052, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
propertyPath: TargetCamera
value:
objectReference: {fileID: 272569012}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 399d6675ad4fa384096256e051a3e131, type: 2}
m_IsPrefabParent: 0

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,7 @@ public class Squad : Unit
#region class members
public float TimeBetweenAttacks = 0.5f;
public string TeamTag;
/// <summary>
/// List of non attackable units.
/// </summary>

View File

@ -104,7 +104,8 @@ public class SquadMovement : MonoBehaviour {
}
catch (NullReferenceException ex)
{
Debug.LogError(ex);
//Debug.LogError(ex);
Debug.LogError("Error in method SquadMovement.getNewBuffer()! \n: " + ex);
}
}
}

View File

@ -0,0 +1,22 @@
using UnityEngine;
using System.Collections;
public class UICamera : MonoBehaviour
{
public Camera TargetCamera;
void Awake()
{
//TargetCamera = GetComponent<>()
//TODO find a way to target the player 1 camera and player 2 camera
// example if my parent is player 1 then I target at camera1 else, target at camera2
}
// Update is called once per frame
void Update ()
{
transform.LookAt(
transform.position + TargetCamera.transform.rotation * Vector3.back,
TargetCamera.transform.rotation * Vector3.up
);
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: ee7477dacce28f94aba6c7b0edc4da87
timeCreated: 1440179376
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: