Commit 3df2c0f6 authored by Manuel Buß's avatar Manuel Buß
Browse files

Solution A2

parent 1892dc5f
fileFormatVersion: 2
guid: b6652cfd4b34bcb47940bdfe14a7fc47
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 71aa42d42aa71b4499e82b2cde2e2514
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -10,6 +10,7 @@ GameObject:
m_Component:
- component: {fileID: 6411032540897539154}
- component: {fileID: 4845184490890940709}
- component: {fileID: 3662898596762574005}
m_Layer: 0
m_Name: Player
m_TagString: Untagged
......@@ -79,3 +80,16 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!114 &3662898596762574005
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1919731297574007180}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1a80fd47a4927eb409560feb7237c381, type: 3}
m_Name:
m_EditorClassIdentifier:
player: 0
......@@ -266,6 +266,11 @@ PrefabInstance:
propertyPath: m_FlipX
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3662898596762574005, guid: 40c6cd0e710ebc44fa3d278099f9a85c,
type: 3}
propertyPath: player
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 40c6cd0e710ebc44fa3d278099f9a85c, type: 3}
--- !u!1 &1438476478
......
fileFormatVersion: 2
guid: aac7d5ff4af309f499aad2ba53f76f47
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
public interface IInputProvider
{
float Direction();
bool Jump();
}
fileFormatVersion: 2
guid: e0f6b77d427ee1a4cbb3d4fe92483c51
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerInputProvider : MonoBehaviour, IInputProvider
{
[Range(0,1)]
[SerializeField] private int player;
public float Direction()
{
return Input.GetAxis("Horizontal" + player);
}
public bool Jump()
{
return Input.GetButtonDown("Jump" + player);
}
}
fileFormatVersion: 2
guid: 1a80fd47a4927eb409560feb7237c381
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -8,14 +8,16 @@ EditorSettings:
m_SerializationMode: 2
m_LineEndingsForNewScripts: 2
m_DefaultBehaviorMode: 1
m_PrefabRegularEnvironment: {fileID: 0}
m_PrefabUIEnvironment: {fileID: 0}
m_SpritePackerMode: 4
m_SpritePackerPaddingPower: 1
m_EtcTextureCompressorBehavior: 1
m_EtcTextureFastCompressor: 1
m_EtcTextureNormalCompressor: 2
m_EtcTextureBestCompressor: 4
m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd
m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef
m_ProjectGenerationRootNamespace:
m_UserGeneratedProjectSuffix:
m_CollabEditorSettings:
inProgressEnabled: 1
m_EnableTextureStreamingInPlayMode: 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment