Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created December 4, 2017 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/298b9b674a6ec598b86bc35c7204a71d to your computer and use it in GitHub Desktop.
Save tsubaki/298b9b674a6ec598b86bc35c7204a71d to your computer and use it in GitHub Desktop.
弾(?)を発射する
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