Koha9
a80f3d6560
Initial commit. Complete project for 'I Wanna Be A Fox' - a 2D scrolling game inspired by 'I Wanna Be The Guy'.
29 lines
413 B
C#
29 lines
413 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class TrigerAnimation : MonoBehaviour {
|
|
|
|
public Animator animator;
|
|
bool On = false;
|
|
|
|
// Use this for initialization
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
public void DoOn()
|
|
{
|
|
On = true;
|
|
}
|
|
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
animator.SetBool("On", On);
|
|
|
|
}
|
|
}
|