mirror of
https://github.com/ConjureETS/VZ.git
synced 2026-03-24 02:11:15 +00:00
- Added capture option
This commit is contained in:
parent
fb114dcf59
commit
df64a801c1
@ -87,6 +87,61 @@ NavMeshSettings:
|
|||||||
cellSize: .166666672
|
cellSize: .166666672
|
||||||
manualCellSize: 0
|
manualCellSize: 0
|
||||||
m_NavMeshData: {fileID: 0}
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1001 &83988629
|
||||||
|
Prefab:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -3.32999992
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 1.13
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 421072, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 159974, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Human (1)
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 159974, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_TagString
|
||||||
|
value: Human
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2386094, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
propertyPath: m_Materials.Array.data[0]
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_RemovedComponents:
|
||||||
|
- {fileID: 11449880, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
m_ParentPrefab: {fileID: 100100000, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
m_IsPrefabParent: 0
|
||||||
--- !u!1001 &151831733
|
--- !u!1001 &151831733
|
||||||
Prefab:
|
Prefab:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -243,7 +298,7 @@ Transform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 2
|
||||||
--- !u!1 &550371263
|
--- !u!1 &550371263
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -303,7 +358,24 @@ Transform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 3
|
||||||
|
--- !u!1 &1191318663 stripped
|
||||||
|
GameObject:
|
||||||
|
m_PrefabParentObject: {fileID: 159974, guid: 55aad163f90cc4e40b686a69ba29569d, type: 2}
|
||||||
|
m_PrefabInternal: {fileID: 83988629}
|
||||||
|
--- !u!114 &1191318664
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1191318663}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8a1ccd1ad32d6bc4fb600c5b5720e01c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
defaultHp: 250
|
||||||
|
defaultAttack: 100
|
||||||
--- !u!1001 &1196959011
|
--- !u!1001 &1196959011
|
||||||
Prefab:
|
Prefab:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -461,7 +533,7 @@ Transform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 3
|
m_RootOrder: 4
|
||||||
--- !u!1 &1740025638
|
--- !u!1 &1740025638
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -534,4 +606,4 @@ Transform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 6
|
m_RootOrder: 7
|
||||||
|
|||||||
@ -213,10 +213,15 @@ public class Squad : Unit
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CaptureHuman(Unit unit)
|
protected void CaptureHuman(Unit unit)
|
||||||
{
|
{
|
||||||
|
// make the human a child of the squad game object
|
||||||
|
//Debug.Log(String.Format("Human parent before colision :{0}", unit.transform.name));
|
||||||
|
unit.IsCaptured = true;
|
||||||
|
unit.transform.parent = this.transform;
|
||||||
|
//Debug.Log(String.Format("Human parent before colision :{0}", unit.transform.parent.name));
|
||||||
AddHuman(unit);
|
AddHuman(unit);
|
||||||
Debug.Log("Entered in collision with: " + unit.Tag);
|
Debug.Log(string.Format("{0} joined the squad of : {1} ", unit.gameObject.name, transform.gameObject.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void AttackEnemySquad(Squad targettedEnemySquad)
|
protected void AttackEnemySquad(Squad targettedEnemySquad)
|
||||||
@ -224,8 +229,7 @@ public class Squad : Unit
|
|||||||
//TODO improve this method add the total of squad damage or to compute the reduce of hp, etc...
|
//TODO improve this method add the total of squad damage or to compute the reduce of hp, etc...
|
||||||
// compute the amount of hp reduced to this unit
|
// compute the amount of hp reduced to this unit
|
||||||
//unit.Hp -= Attack; // we remove some hp of the unit that was
|
//unit.Hp -= Attack; // we remove some hp of the unit that was
|
||||||
var amountOfDamageToApply = ComputeAttackDamage();
|
targettedEnemySquad.ReceiveDamage(ComputeAttackDamage());
|
||||||
targettedEnemySquad.ReceiveDamage(amountOfDamageToApply);
|
|
||||||
|
|
||||||
Debug.Log("Attacked the ennemy : " + targettedEnemySquad.Tag);
|
Debug.Log("Attacked the ennemy : " + targettedEnemySquad.Tag);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,8 +11,9 @@ public class Unit : MonoBehaviour
|
|||||||
public int defaultAttack = 100;
|
public int defaultAttack = 100;
|
||||||
private int _hp; // the unit hp
|
private int _hp; // the unit hp
|
||||||
// Use this for initialization
|
// Use this for initialization
|
||||||
void Start ()
|
void Start ()
|
||||||
{
|
{
|
||||||
|
IsCaptured = false;
|
||||||
// initialize default hp
|
// initialize default hp
|
||||||
Hp = defaultHp;
|
Hp = defaultHp;
|
||||||
// initialize default attack
|
// initialize default attack
|
||||||
@ -47,7 +48,7 @@ public class Unit : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region Unit properties
|
#region Unit properties
|
||||||
|
public bool IsCaptured { get; set; }
|
||||||
public int Hp
|
public int Hp
|
||||||
{
|
{
|
||||||
get { return _hp; }
|
get { return _hp; }
|
||||||
|
|||||||
@ -49,12 +49,12 @@ public class VampireSquad : Squad
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CaptureHuman(Unit unit)
|
/*void CaptureHuman(Unit unit)
|
||||||
{
|
{
|
||||||
// TODO either add the human as a squad member or change it's tag to vampireHuman
|
// TODO either add the human as a squad member or change it's tag to vampireHuman
|
||||||
// when the player is transformed we just make VampireSquad vampireUnit2 = (VampireSquad) unit;
|
// when the player is transformed we just make VampireSquad vampireUnit2 = (VampireSquad) unit;
|
||||||
Debug.Log("Entered in collision with: " + unit.Tag );
|
Debug.Log("Entered in collision with: " + unit.Tag );
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/* void AttackEnemySquad(Unit unit)
|
/* void AttackEnemySquad(Unit unit)
|
||||||
{
|
{
|
||||||
@ -80,7 +80,14 @@ public class VampireSquad : Squad
|
|||||||
|
|
||||||
if (unitComponent.Tag.Equals(TagManager.Human))
|
if (unitComponent.Tag.Equals(TagManager.Human))
|
||||||
{
|
{
|
||||||
CaptureHuman(unitComponent);
|
if (unitComponent.IsCaptured)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CaptureHuman(unitComponent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else // we know that it's an ennemy
|
else // we know that it's an ennemy
|
||||||
{
|
{
|
||||||
|
|||||||
@ -49,12 +49,12 @@ public class ZombieSquad : Squad
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CaptureHuman(Unit unit)
|
/*void CaptureHuman(Unit unit)
|
||||||
{
|
{
|
||||||
// TODO either add the human as a squad member or change it's tag to vampireHuman
|
// TODO either add the human as a squad member or change it's tag to vampireHuman
|
||||||
// when the player is transformed we just make VampireSquad vampireUnit2 = (VampireSquad) unit;
|
// when the player is transformed we just make VampireSquad vampireUnit2 = (VampireSquad) unit;
|
||||||
Debug.Log("Entered in collision with: " + unit.Tag);
|
Debug.Log("Entered in collision with: " + unit.Tag);
|
||||||
}
|
}*/
|
||||||
/*void AttackEnemySquad(Unit unit)
|
/*void AttackEnemySquad(Unit unit)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -3,19 +3,17 @@
|
|||||||
--- !u!129 &1
|
--- !u!129 &1
|
||||||
PlayerSettings:
|
PlayerSettings:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 6
|
serializedVersion: 7
|
||||||
AndroidProfiler: 0
|
AndroidProfiler: 0
|
||||||
defaultScreenOrientation: 4
|
defaultScreenOrientation: 4
|
||||||
targetDevice: 2
|
targetDevice: 2
|
||||||
targetGlesGraphics: -1
|
|
||||||
targetIOSGraphics: -1
|
|
||||||
targetResolution: 0
|
targetResolution: 0
|
||||||
accelerometerFrequency: 60
|
accelerometerFrequency: 60
|
||||||
companyName: DefaultCompany
|
companyName: DefaultCompany
|
||||||
productName: VZ
|
productName: VZ
|
||||||
cloudProjectId:
|
|
||||||
defaultCursor: {fileID: 0}
|
defaultCursor: {fileID: 0}
|
||||||
cursorHotspot: {x: 0, y: 0}
|
cursorHotspot: {x: 0, y: 0}
|
||||||
|
m_ShowUnitySplashScreen: 1
|
||||||
defaultScreenWidth: 1024
|
defaultScreenWidth: 1024
|
||||||
defaultScreenHeight: 768
|
defaultScreenHeight: 768
|
||||||
defaultScreenWidthWeb: 960
|
defaultScreenWidthWeb: 960
|
||||||
@ -25,7 +23,6 @@ PlayerSettings:
|
|||||||
m_ActiveColorSpace: 0
|
m_ActiveColorSpace: 0
|
||||||
m_MTRendering: 1
|
m_MTRendering: 1
|
||||||
m_MobileMTRendering: 0
|
m_MobileMTRendering: 0
|
||||||
m_UseDX11: 1
|
|
||||||
m_Stereoscopic3D: 0
|
m_Stereoscopic3D: 0
|
||||||
iosShowActivityIndicatorOnLoading: -1
|
iosShowActivityIndicatorOnLoading: -1
|
||||||
androidShowActivityIndicatorOnLoading: -1
|
androidShowActivityIndicatorOnLoading: -1
|
||||||
@ -118,9 +115,11 @@ PlayerSettings:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 0
|
rgba: 0
|
||||||
iOSLaunchScreenFillPct: 1
|
iOSLaunchScreenFillPct: 1
|
||||||
|
iOSLaunchScreenSize: 100
|
||||||
iOSLaunchScreenCustomXibPath:
|
iOSLaunchScreenCustomXibPath:
|
||||||
AndroidTargetDevice: 0
|
AndroidTargetDevice: 0
|
||||||
AndroidSplashScreenScale: 0
|
AndroidSplashScreenScale: 0
|
||||||
|
androidSplashScreen: {fileID: 0}
|
||||||
AndroidKeystoreName:
|
AndroidKeystoreName:
|
||||||
AndroidKeyaliasName:
|
AndroidKeyaliasName:
|
||||||
AndroidTVCompatibility: 1
|
AndroidTVCompatibility: 1
|
||||||
@ -130,6 +129,7 @@ PlayerSettings:
|
|||||||
- width: 320
|
- width: 320
|
||||||
height: 180
|
height: 180
|
||||||
banner: {fileID: 0}
|
banner: {fileID: 0}
|
||||||
|
androidGamepadSupportLevel: 0
|
||||||
resolutionDialogBanner: {fileID: 0}
|
resolutionDialogBanner: {fileID: 0}
|
||||||
m_BuildTargetIcons:
|
m_BuildTargetIcons:
|
||||||
- m_BuildTarget:
|
- m_BuildTarget:
|
||||||
@ -137,6 +137,7 @@ PlayerSettings:
|
|||||||
- m_Icon: {fileID: 0}
|
- m_Icon: {fileID: 0}
|
||||||
m_Size: 128
|
m_Size: 128
|
||||||
m_BuildTargetBatching: []
|
m_BuildTargetBatching: []
|
||||||
|
m_BuildTargetGraphicsAPIs: []
|
||||||
webPlayerTemplate: APPLICATION:Default
|
webPlayerTemplate: APPLICATION:Default
|
||||||
m_TemplateCustomTags: {}
|
m_TemplateCustomTags: {}
|
||||||
actionOnDotNetUnhandledException: 1
|
actionOnDotNetUnhandledException: 1
|
||||||
@ -198,6 +199,7 @@ PlayerSettings:
|
|||||||
ps4ApplicationParam2: 0
|
ps4ApplicationParam2: 0
|
||||||
ps4ApplicationParam3: 0
|
ps4ApplicationParam3: 0
|
||||||
ps4ApplicationParam4: 0
|
ps4ApplicationParam4: 0
|
||||||
|
ps4GarlicHeapSize: 2048
|
||||||
ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ
|
ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ
|
||||||
ps4pnSessions: 1
|
ps4pnSessions: 1
|
||||||
ps4pnPresence: 1
|
ps4pnPresence: 1
|
||||||
@ -209,6 +211,7 @@ PlayerSettings:
|
|||||||
psp2NPTrophyPackPath:
|
psp2NPTrophyPackPath:
|
||||||
psp2NPSupportGBMorGJP: 0
|
psp2NPSupportGBMorGJP: 0
|
||||||
psp2NPAgeRating: 12
|
psp2NPAgeRating: 12
|
||||||
|
psp2NPTitleDatPath:
|
||||||
psp2NPCommsID:
|
psp2NPCommsID:
|
||||||
psp2NPCommunicationsID:
|
psp2NPCommunicationsID:
|
||||||
psp2NPCommsPassphrase:
|
psp2NPCommsPassphrase:
|
||||||
@ -223,6 +226,7 @@ PlayerSettings:
|
|||||||
psp2PatchOriginalPackage:
|
psp2PatchOriginalPackage:
|
||||||
psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui
|
psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui
|
||||||
psp2KeystoneFile:
|
psp2KeystoneFile:
|
||||||
|
psp2MemoryExpansionMode: 0
|
||||||
psp2DRMType: 0
|
psp2DRMType: 0
|
||||||
psp2StorageType: 0
|
psp2StorageType: 0
|
||||||
psp2MediaCapacity: 0
|
psp2MediaCapacity: 0
|
||||||
@ -250,6 +254,7 @@ PlayerSettings:
|
|||||||
psp2InfoBarOnStartup: 0
|
psp2InfoBarOnStartup: 0
|
||||||
psp2InfoBarColor: 0
|
psp2InfoBarColor: 0
|
||||||
psmSplashimage: {fileID: 0}
|
psmSplashimage: {fileID: 0}
|
||||||
|
virtualRealitySupported: 0
|
||||||
spritePackerPolicy:
|
spritePackerPolicy:
|
||||||
scriptingDefineSymbols: {}
|
scriptingDefineSymbols: {}
|
||||||
metroPackageName: VZ
|
metroPackageName: VZ
|
||||||
@ -338,8 +343,7 @@ PlayerSettings:
|
|||||||
blackberrySquareSplashScreen: {fileID: 0}
|
blackberrySquareSplashScreen: {fileID: 0}
|
||||||
tizenProductDescription:
|
tizenProductDescription:
|
||||||
tizenProductURL:
|
tizenProductURL:
|
||||||
tizenCertificatePath:
|
tizenSigningProfileName:
|
||||||
tizenCertificatePassword:
|
|
||||||
tizenGPSPermissions: 0
|
tizenGPSPermissions: 0
|
||||||
tizenMicrophonePermissions: 0
|
tizenMicrophonePermissions: 0
|
||||||
stvDeviceAddress:
|
stvDeviceAddress:
|
||||||
@ -358,6 +362,7 @@ PlayerSettings:
|
|||||||
XboxOnePackagingOverridePath:
|
XboxOnePackagingOverridePath:
|
||||||
XboxOneAppManifestOverridePath:
|
XboxOneAppManifestOverridePath:
|
||||||
XboxOnePackageEncryption: 0
|
XboxOnePackageEncryption: 0
|
||||||
|
XboxOnePackageUpdateGranularity: 2
|
||||||
XboxOneDescription:
|
XboxOneDescription:
|
||||||
XboxOneIsContentPackage: 0
|
XboxOneIsContentPackage: 0
|
||||||
XboxOneEnableGPUVariability: 0
|
XboxOneEnableGPUVariability: 0
|
||||||
@ -400,4 +405,9 @@ PlayerSettings:
|
|||||||
WebGL::emscriptenArgs:
|
WebGL::emscriptenArgs:
|
||||||
WebGL::template: APPLICATION:Default
|
WebGL::template: APPLICATION:Default
|
||||||
additionalIl2CppArgs::additionalIl2CppArgs:
|
additionalIl2CppArgs::additionalIl2CppArgs:
|
||||||
firstStreamedLevelWithResources: 0
|
firstStreamedSceneWithResources: 0
|
||||||
|
cloudProjectId:
|
||||||
|
projectId:
|
||||||
|
projectName:
|
||||||
|
organizationId:
|
||||||
|
cloudEnabled: 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user