This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Rewindable : MonoBehaviour | |
{ | |
[Header("Info")] | |
public List<Vector3> _positions; | |
//============================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IWeapon | |
{ | |
void Attack(); | |
} | |
public interface IDamageDealer | |
{ | |
void DealDamage(IDamageable damageable, int amount); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ThrowingDagger : Weapon, IThrowable { | |
// Overrides the default Attack() from the Weapon class | |
public override void Attack() | |
{ | |
Throw(); | |
} | |
// IThrowable | |
public void Throw() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Weapon : IWeapon, IDamageDealer, IEquippable { | |
// IWeapon | |
public virtual void Attack() | |
{ | |
// Default weapon attack goes here | |
// Virtual so it can be overridden by subclasses | |
} | |
// IDamageDealer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PartyMember : MonoBehaviour | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Party : MonoBehaviour | |
{ | |
[Header("Info")] | |
public List<PartyMember> _members; | |
// EVENTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using SpaceTrader.Stations; | |
using SpaceTrader.Resources; | |
namespace SpaceTrader.Misc | |
{ | |
public class Basket : MonoBehaviour | |
{ |
NewerOlder