Skip to content

Instantly share code, notes, and snippets.

View Sose's full-sized avatar

Joni Hiltunen Sose

View GitHub Profile
@Sose
Sose / AttackState.cs
Last active December 10, 2015 09:30
Unity C# FSM
using UnityEngine;
using System.Collections;
public class AttackState : State
{
private float attackTimer;
private float attackDuration = 0.5f;
public override void OnEnter()