1
0

Spider Controller

This commit is contained in:
MoMack20 2016-01-31 11:43:38 -05:00
parent cf1f714343
commit 5b9c79186b
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ using System;
public class Enemy : Controller{
public bool isAir;
private state currentState;
private Animator mAnimator;
public LayerMask enemyMask;
public bool rightdirection;
public float[] time = new float[10];
@ -14,6 +15,7 @@ public class Enemy : Controller{
void Start ()
{
print("start");
mAnimator = GetComponent<Animator> ();
changestate(new idle());
}
// Update is called once per frame