Last active
July 14, 2016 06:32
-
-
Save kazumalab/41231d4699259893b1e0b8c460e0b37f to your computer and use it in GitHub Desktop.
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; | |
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