Initial Commit
This commit is contained in:
commit
ee5c2f922d
2255 changed files with 547750 additions and 0 deletions
30
Assets/Scripts/Facades/ActorFacade.cs
Normal file
30
Assets/Scripts/Facades/ActorFacade.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
using System;
|
||||
using Unity.Entities;
|
||||
using UnityEngine;
|
||||
|
||||
public class ActorFacade : MonoBehaviour, IActorFacade
|
||||
{
|
||||
[SerializeField] private AudioSource feetSoundSource;
|
||||
[SerializeField] private SoundLibrary jumpSoundLibrary;
|
||||
[SerializeField] private SoundLibrary landSoundLibrary;
|
||||
[SerializeField] private float stepAmount;
|
||||
[SerializeField] private SoundLibrary stepSoundsLibrary;
|
||||
|
||||
public SoundLibrary JumpSoundLibrary => jumpSoundLibrary;
|
||||
|
||||
public SoundLibrary LandSoundLibrary => landSoundLibrary;
|
||||
|
||||
public SoundLibrary StepSoundsLibrary => stepSoundsLibrary;
|
||||
|
||||
public Entity Entity { get; set; }
|
||||
|
||||
public World World { get; set; }
|
||||
|
||||
public event Action<Collision2D> OnCollisionEnterEvent;
|
||||
|
||||
public AudioSource FeetAudio => feetSoundSource;
|
||||
|
||||
public float StepAmount => stepAmount;
|
||||
|
||||
public event Action<Collision2D> OnCollisionExitEvent;
|
||||
}
|
||||
3
Assets/Scripts/Facades/ActorFacade.cs.meta
Normal file
3
Assets/Scripts/Facades/ActorFacade.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5cfc20c5166d445f9e11096a0023c9e7
|
||||
timeCreated: 1531168432
|
||||
11
Assets/Scripts/Facades/IActorFacade.cs
Normal file
11
Assets/Scripts/Facades/IActorFacade.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public interface IActorFacade
|
||||
{
|
||||
float StepAmount { get; }
|
||||
|
||||
AudioSource FeetAudio { get; }
|
||||
|
||||
event Action<Collision2D> OnCollisionEnterEvent;
|
||||
}
|
||||
3
Assets/Scripts/Facades/IActorFacade.cs.meta
Normal file
3
Assets/Scripts/Facades/IActorFacade.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 66aeef754cf64bdb984cda539fedf7ce
|
||||
timeCreated: 1531166611
|
||||
6
Assets/Scripts/Facades/PlayerFacade.cs
Normal file
6
Assets/Scripts/Facades/PlayerFacade.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class PlayerFacade : MonoBehaviour
|
||||
{
|
||||
public float MaxHealth;
|
||||
}
|
||||
3
Assets/Scripts/Facades/PlayerFacade.cs.meta
Normal file
3
Assets/Scripts/Facades/PlayerFacade.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3c24cd6a75174d7e9aae311b0c9f7171
|
||||
timeCreated: 1531055241
|
||||
Loading…
Add table
Add a link
Reference in a new issue