Skip to content

Instantly share code, notes, and snippets.

@kazumalab
Last active July 14, 2016 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazumalab/41231d4699259893b1e0b8c460e0b37f to your computer and use it in GitHub Desktop.
Save kazumalab/41231d4699259893b1e0b8c460e0b37f to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class Player : Movement, Damage { // サブクラス
// Use this for initialization
void Start () {
move ();
}
public override void move ()
{
base.move ();
}
private int get_damage(){
return -3;
}
}
public class Enemy : Movement, Damage { // サブクラス
public override void move ()
{
}
public override void rotation ()
{
}
private get_damage(){
reutrn -1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment