Initial commit

This commit is contained in:
Kasutaja
2023-04-29 23:13:37 +03:00
parent 2df97d25b5
commit 0b5f0c87be
300 changed files with 43820 additions and 0 deletions

View File

@@ -0,0 +1,135 @@
fileFormatVersion: 2
guid: 65be32ab5fd526e47a687a4ab63f64a0
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

8
Assets/Scripts/Kast.cs Normal file
View File

@@ -0,0 +1,8 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Kast : MonoBehaviour
{
public int müntideArv;
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e37f4b6babd1af34f98c9f8136b1ada1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a1d6803afa5a4b94b89d82940febccd7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,80 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 341809764_3351465055105835_2156984113517557061_n
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 65be32ab5fd526e47a687a4ab63f64a0, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1be0bb78cb8c1004fae64e013ca875be
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,16 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class MüntideLugeja : MonoBehaviour
{
public int arv;
public TextMeshProUGUI textMeshProUGUI;
public void AnnaMünte(int arv)
{
this.arv += arv;
textMeshProUGUI.text = this.arv + " $";
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c51c327a8213047409c010b678043bb1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,16 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TargetFollower : MonoBehaviour
{
public Transform kasi;
public Transform kaesolevAsi;
public float kiirus;
public void FixedUpdate()
{
if (kaesolevAsi == null) return;
kaesolevAsi.position = Vector3.Lerp(kaesolevAsi.position, kasi.position, kiirus * Time.deltaTime);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 82353085bada6d74ab12b2a98a8667b3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,31 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class pahalane : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.position += new Vector3(-20, 0) * Time.deltaTime;
}
private void OnTriggerEnter(Collider collision)
{
if (collision.gameObject.tag == "player")
{
collision.gameObject.GetComponent<player>().Surm();
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e9e4b9e20b133d34ba0273bc6906423e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

114
Assets/Scripts/player.cs Normal file
View File

@@ -0,0 +1,114 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class player : MonoBehaviour
{
[SerializeField] private GameObject mündiEffekt;
public Transform mündiMinekuAsukoht;
private bool lendab;
public ForceMode forcemode;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKey(KeyCode.W))
{
transform.rotation = Quaternion.Euler(0, 360, 0);
}
if (Input.GetKey(KeyCode.S))
{
transform.rotation = Quaternion.Euler(0, 180, 0);
}
if (Input.GetKeyDown(KeyCode.Space) & !lendab)
{
GetComponent<Rigidbody>().AddForce(new Vector3(0, 2000), forcemode);
lendab = true;
//transform.position += new Vector3(0, 20) * Time.deltaTime;
}
if (Input.GetKey(KeyCode.D))
{
transform.position += new Vector3(20, 0) * Time.deltaTime;
transform.rotation = Quaternion.Euler(0, 90, 0);
}
if (Input.GetKey(KeyCode.A))
{
transform.position += new Vector3(-20, 0) * Time.deltaTime;
transform.rotation = Quaternion.Euler(0, 270, 0);
}
}
private bool kasLendab() {
if (gameObject.transform.position.y <= 1143.05)
return lendab = false;
else
return lendab = true;
}
public void OnCollisionEnter(Collision collision)
{
if(collision.gameObject.tag == "Ground")
{
lendab = false;
}
Debug.Log(collision);
}
public void OnTriggerEnter(Collider other)
{
if (other.tag == "kast")
{
var targetFollower = GetComponent<TargetFollower>();
targetFollower.kaesolevAsi = other.gameObject.transform;
targetFollower.kaesolevAsi.DOScale(Vector3.one * 0.4f, 1f);
targetFollower.kaesolevAsi.GetComponent<Rigidbody>().constraints = RigidbodyConstraints.FreezeAll;
}
else if (other.tag == "npc")
{
var targetFollower = GetComponent<TargetFollower>();
if (targetFollower.kaesolevAsi == null) return;
var müntideArv = targetFollower.kaesolevAsi.GetComponent<Kast>().müntideArv;
FindObjectOfType<MüntideLugeja>().AnnaMünte(müntideArv);
Destroy(targetFollower.kaesolevAsi.gameObject);
for (var i = 0; i < müntideArv; i++)
{
var münt = Instantiate(mündiEffekt, transform.position, Quaternion.identity);
//münt.transform.localScale = Vector3.zero;
var seq = DOTween.Sequence();
seq.Append(münt.transform.DOScale(Vector3.one, i).SetEase(Ease.InOutQuad));
var tf = münt.AddComponent<TargetFollower>();
tf.kiirus = 5f - i * (0.5f);
tf.kasi = mündiMinekuAsukoht;
tf.kaesolevAsi = münt.transform;
Destroy(münt, 5f - i * (0.5f));
//seq.Append(münt.transform.DOScale(Vector3.one, i).SetEase(Ease.InOutQuad));
//seq.Append(münt.transform.DOScale(Vector3.zero, i).SetEase(Ease.InOutQuad)).OnComplete(() => { Destroy(münt); });
}
}
}
public void Surm()
{
transform.position = new Vector3(-78, 1138, 0);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0e53a42bc2129ad4b8ea12630def181b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

16
Assets/Scripts/surm.cs Normal file
View File

@@ -0,0 +1,16 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class surm : MonoBehaviour
{
private void OnTriggerEnter(Collider collision)
{
if (collision.gameObject.tag == "player")
{
collision.gameObject.GetComponent<player>().Surm();
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1bcb7334c100d884c867f64887151499
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: