Skip to content

Instantly share code, notes, and snippets.

@mikelovesrobots
Created March 28, 2014 00:13
Show Gist options
  • Save mikelovesrobots/9822135 to your computer and use it in GitHub Desktop.
Save mikelovesrobots/9822135 to your computer and use it in GitHub Desktop.
Dungeon Highway Character Model
using UnityEngine;
using System.Collections;
[System.Serializable]
public class Character {
public CharacterType CharacterType;
public Sprite DefaultSprite;
public string PortraitSpriteName;
public string WalkAnimationName {
get { return CharacterType.ToString() + "Walk"; }
}
public string DieAnimationName {
get { return CharacterType.ToString() + "Die"; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment