Added Site Data
8
Assets/Animations/MainMenuAnimations.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 42a817e1911134644ad5984336f4b65a
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1182,7 +1182,7 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2646791548311929742, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
- target: {fileID: 2646791548311929742, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: 0
|
value: -3.95
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2646791548311929742, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
- target: {fileID: 2646791548311929742, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
@ -1190,7 +1190,7 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2646791548311929742, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
- target: {fileID: 2646791548311929742, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: 0
|
value: -0.09
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2646791548311929742, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
- target: {fileID: 2646791548311929742, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
||||||
propertyPath: m_LocalRotation.w
|
propertyPath: m_LocalRotation.w
|
||||||
@ -1236,6 +1236,10 @@ PrefabInstance:
|
|||||||
propertyPath: m_PropertySheet.m_Float.m_Array.Array.data[3].m_Overridden
|
propertyPath: m_PropertySheet.m_Float.m_Array.Array.data[3].m_Overridden
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2646791548413725038, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
||||||
|
propertyPath: m_PropertySheet.m_Vector3f.m_Array.Array.data[0].m_Value.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2646791548413725038, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
- target: {fileID: 2646791548413725038, guid: 921205ad18755e043ab119bf41a01a60, type: 3}
|
||||||
propertyPath: m_PropertySheet.m_Vector3f.m_Array.Array.data[0].m_Value.y
|
propertyPath: m_PropertySheet.m_Vector3f.m_Array.Array.data[0].m_Value.y
|
||||||
value: 0
|
value: 0
|
||||||
|
17480
Assets/Scenes/StartScreen.unity
Normal file
7
Assets/Scenes/StartScreen.unity.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ebfe2b66ea34ee8478703b2f8705084a
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,6 +1,7 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using static UnityEngine.UI.Image;
|
||||||
|
|
||||||
public class PistolComponent : MonoBehaviour
|
public class PistolComponent : MonoBehaviour
|
||||||
{
|
{
|
||||||
@ -10,6 +11,7 @@ public class PistolComponent : MonoBehaviour
|
|||||||
private bool IsEnabled = false;
|
private bool IsEnabled = false;
|
||||||
|
|
||||||
GameObject targetObject;
|
GameObject targetObject;
|
||||||
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
GameObject targetObjectPrefab;
|
GameObject targetObjectPrefab;
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
@ -21,6 +23,8 @@ public class PistolComponent : MonoBehaviour
|
|||||||
[SerializeField]
|
[SerializeField]
|
||||||
private float maxProjectileDuration = 5f;
|
private float maxProjectileDuration = 5f;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//private Dictionary<int,float> projectiles = new Dictionary<int, float>();
|
//private Dictionary<int,float> projectiles = new Dictionary<int, float>();
|
||||||
|
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
@ -34,6 +38,21 @@ void Update()
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
private float CalculateDrop(Vector3 origin,Vector3 destination,Vector3 force)
|
||||||
|
{
|
||||||
|
// Calculate the initial velocity required to reach the destination.
|
||||||
|
Vector3 displacement = destination - origin;
|
||||||
|
float time = Mathf.Sqrt(2f * displacement.magnitude / Physics.gravity.magnitude);
|
||||||
|
Vector3 velocity = (displacement - 0.5f * Physics.gravity * time * time) / time + force;
|
||||||
|
|
||||||
|
// Calculate the height the object will reach during its flight.
|
||||||
|
float maxHeight = origin.y + velocity.y * time - 0.5f * Physics.gravity.y * time * time;
|
||||||
|
|
||||||
|
// Calculate the distance the object will drop during its flight.
|
||||||
|
float dropDistance = maxHeight - destination.y;
|
||||||
|
|
||||||
|
return dropDistance;
|
||||||
}
|
}
|
||||||
private void FixedUpdate()
|
private void FixedUpdate()
|
||||||
{
|
{
|
||||||
@ -44,6 +63,9 @@ private void FixedUpdate()
|
|||||||
if (Physics.Raycast(ray, out hit, 50))
|
if (Physics.Raycast(ray, out hit, 50))
|
||||||
{
|
{
|
||||||
targetObject.gameObject.transform.position = hit.point;
|
targetObject.gameObject.transform.position = hit.point;
|
||||||
|
float drop = CalculateDrop(this.bulletSpawnPoint.position, hit.point, this.transform.up * this.firePower);
|
||||||
|
print(drop);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ void Update()
|
|||||||
this.DisableFlashlight();
|
this.DisableFlashlight();
|
||||||
|
|
||||||
float aimAxis = Input.GetAxis("Aim");
|
float aimAxis = Input.GetAxis("Aim");
|
||||||
print("Aim:" + aimAxis);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -28,6 +28,8 @@ public class PlayerMovementController : MonoBehaviour
|
|||||||
[SerializeField]
|
[SerializeField]
|
||||||
private Camera cam;
|
private Camera cam;
|
||||||
|
|
||||||
|
[HideInInspector]
|
||||||
|
public bool AllowRotation = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -68,14 +70,20 @@ void Start()
|
|||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
AllowRotation = Input.GetMouseButton(1);
|
||||||
GetMovementOld();
|
GetMovementOld();
|
||||||
MovePlayer();
|
MovePlayer();
|
||||||
|
|
||||||
animcontroller.Animate(new Vector2(x, y), false,isRunning);
|
animcontroller.Animate(new Vector2(x, y), false,isRunning);
|
||||||
|
|
||||||
this.lookingDirectionVector = ((cameraController.Forward * y) + cameraController.Right * x).normalized;
|
this.lookingDirectionVector = ((cameraController.Forward * y) + cameraController.Right * x).normalized;
|
||||||
if (isRunning && !Input.GetMouseButton(1))
|
if (isRunning && !Input.GetMouseButtonDown(1)||AllowRotation)
|
||||||
{
|
{
|
||||||
|
if (AllowRotation && x == 0 && y == 0)
|
||||||
|
{
|
||||||
|
this.lookingDirectionVector = cameraController.Forward.normalized;
|
||||||
|
}
|
||||||
|
|
||||||
SlowLookAt(this.lookingDirectionVector);
|
SlowLookAt(this.lookingDirectionVector);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
8
site_data/assets/bootstrap/css/bootstrap.min.css
vendored
Normal file
6
site_data/assets/bootstrap/js/bootstrap.min.js
vendored
Normal file
BIN
site_data/assets/fonts/FontAwesome.otf
Normal file
4
site_data/assets/fonts/font-awesome.min.css
vendored
Normal file
BIN
site_data/assets/fonts/fontawesome-webfont.eot
Normal file
2671
site_data/assets/fonts/fontawesome-webfont.svg
Normal file
After Width: | Height: | Size: 434 KiB |
BIN
site_data/assets/fonts/fontawesome-webfont.ttf
Normal file
BIN
site_data/assets/fonts/fontawesome-webfont.woff
Normal file
BIN
site_data/assets/fonts/fontawesome-webfont.woff2
Normal file
BIN
site_data/assets/img/Screenshot 2023-04-04 172815.png
Normal file
After Width: | Height: | Size: 869 KiB |
BIN
site_data/assets/img/Screenshot_20230130_050707.png
Normal file
After Width: | Height: | Size: 1005 KiB |
BIN
site_data/assets/img/downloads-bg.jpg
Normal file
After Width: | Height: | Size: 108 KiB |
BIN
site_data/assets/img/intro-bg.jpg
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
site_data/assets/img/pexels-kai-pilger-1341279.jpg
Normal file
After Width: | Height: | Size: 3.8 MiB |
BIN
site_data/assets/img/station.png
Normal file
After Width: | Height: | Size: 909 KiB |
BIN
site_data/assets/img/station2.png
Normal file
After Width: | Height: | Size: 717 KiB |
1
site_data/assets/js/script.min.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";var e=document.querySelector("#mainNav");if(e){var o=e.querySelector(".navbar-collapse");if(o){var n=new bootstrap.Collapse(o,{toggle:!1}),t=o.querySelectorAll("a");for(var a of t)a.addEventListener("click",(function(e){n.hide()}))}var r=function(){(void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop)>100?e.classList.add("navbar-shrink"):e.classList.remove("navbar-shrink")};r(),document.addEventListener("scroll",r)}}();
|