Added shanking mechanic to kill patron.
This commit is contained in:
parent
3bf37536fb
commit
04200df045
7 changed files with 45 additions and 19 deletions
|
|
@ -14,7 +14,7 @@ GameObject:
|
||||||
- 114: {fileID: 11400000}
|
- 114: {fileID: 11400000}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Shanking Detector
|
m_Name: Shanking Detector
|
||||||
m_TagString: Untagged
|
m_TagString: Shank
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
|
|
|
||||||
|
|
@ -237,8 +237,8 @@ Transform:
|
||||||
m_PrefabInternal: {fileID: 0}
|
m_PrefabInternal: {fileID: 0}
|
||||||
m_GameObject: {fileID: 134611195}
|
m_GameObject: {fileID: 134611195}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -5.53722095, y: 9.75308609, z: 7.53864098}
|
m_LocalPosition: {x: -5.53722095, y: 10.147995, z: 7.53864098}
|
||||||
m_LocalScale: {x: 2.19080043, y: 2.19080043, z: 2.19080043}
|
m_LocalScale: {x: 2.19080043, y: 3.67920685, z: 2.19080043}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 704683992}
|
m_Father: {fileID: 704683992}
|
||||||
--- !u!54 &134611201
|
--- !u!54 &134611201
|
||||||
|
|
@ -1128,7 +1128,7 @@ Transform:
|
||||||
m_PrefabInternal: {fileID: 0}
|
m_PrefabInternal: {fileID: 0}
|
||||||
m_GameObject: {fileID: 972571120}
|
m_GameObject: {fileID: 972571120}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 2, z: 0}
|
m_LocalPosition: {x: -5, y: 2, z: 5}
|
||||||
m_LocalScale: {x: 1.5, y: 4, z: 1.5}
|
m_LocalScale: {x: 1.5, y: 4, z: 1.5}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 47264523}
|
- {fileID: 47264523}
|
||||||
|
|
@ -2139,7 +2139,7 @@ Transform:
|
||||||
m_PrefabInternal: {fileID: 0}
|
m_PrefabInternal: {fileID: 0}
|
||||||
m_GameObject: {fileID: 2004495480}
|
m_GameObject: {fileID: 2004495480}
|
||||||
m_LocalRotation: {x: .382683486, y: 0, z: 0, w: .923879564}
|
m_LocalRotation: {x: .382683486, y: 0, z: 0, w: .923879564}
|
||||||
m_LocalPosition: {x: 0, y: 10, z: -7.5}
|
m_LocalPosition: {x: 0, y: 10, z: -10}
|
||||||
m_LocalScale: {x: .75, y: .962499857, z: .962499976}
|
m_LocalScale: {x: .75, y: .962499857, z: .962499976}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
|
|
|
||||||
15
Assets/Scripts/GotStabbed.cs
Normal file
15
Assets/Scripts/GotStabbed.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
using UnityEngine;
|
||||||
|
using System.Collections;
|
||||||
|
|
||||||
|
public class GotStabbed : MonoBehaviour {
|
||||||
|
|
||||||
|
// Use this for initialization
|
||||||
|
void Start () {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update () {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
8
Assets/Scripts/GotStabbed.cs.meta
Normal file
8
Assets/Scripts/GotStabbed.cs.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2cd24e31979a5b84f813edbbbfa3d661
|
||||||
|
MonoImporter:
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
|
@ -11,4 +11,19 @@ public class Patron : MonoBehaviour {
|
||||||
nva.SetDestination(pos);
|
nva.SetDestination(pos);
|
||||||
nva.updateRotation = false;
|
nva.updateRotation = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OnTriggerEnter(Collider other) {
|
||||||
|
|
||||||
|
//Instantiate(explosion, transform.position, transform.rotation);
|
||||||
|
if (other.tag == "Shank")
|
||||||
|
{
|
||||||
|
//Instantiate (playerExplosion, other.transform.position, other.transform.rotation);
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
// gameController.AddScore (scoreValue);
|
||||||
|
//
|
||||||
|
// Destroy (other.gameObject);
|
||||||
|
// Destroy (gameObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -120,17 +120,4 @@ QualitySettings:
|
||||||
maximumLODLevel: 0
|
maximumLODLevel: 0
|
||||||
particleRaycastBudget: 4096
|
particleRaycastBudget: 4096
|
||||||
excludedTargetPlatforms: []
|
excludedTargetPlatforms: []
|
||||||
m_PerPlatformDefaultQuality:
|
m_PerPlatformDefaultQuality: {}
|
||||||
Android: 2
|
|
||||||
BlackBerry: 2
|
|
||||||
FlashPlayer: 3
|
|
||||||
GLES Emulation: 3
|
|
||||||
PS3: 3
|
|
||||||
Standalone: 3
|
|
||||||
Tizen: 2
|
|
||||||
WP8: 3
|
|
||||||
Web: 3
|
|
||||||
Wii: 3
|
|
||||||
Windows Store Apps: 3
|
|
||||||
XBOX360: 3
|
|
||||||
iPhone: 2
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
--- !u!78 &1
|
--- !u!78 &1
|
||||||
TagManager:
|
TagManager:
|
||||||
tags:
|
tags:
|
||||||
|
- Shank
|
||||||
-
|
-
|
||||||
Builtin Layer 0: Default
|
Builtin Layer 0: Default
|
||||||
Builtin Layer 1: TransparentFX
|
Builtin Layer 1: TransparentFX
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue