Created
December 4, 2017 01:24
-
-
Save tsubaki/298b9b674a6ec598b86bc35c7204a71d 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Timeline; | |
public class Bullet : MonoBehaviour, ITimeControl { | |
[SerializeField] | |
ParticleSystem bullet; | |
public void SetTime (double time){} | |
public void OnControlTimeStart () | |
{ | |
var e = bullet.emission; | |
e.enabled = true; | |
} | |
public void OnControlTimeStop () | |
{ | |
var e = bullet.emission; | |
e.enabled = false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment