45 lines
1.0 KiB
C#
45 lines
1.0 KiB
C#
![]() |
// ***********************************************************************
|
|||
|
// Assembly : Game
|
|||
|
// Author : Kimch
|
|||
|
// Created : 2020-09-02
|
|||
|
// Description :
|
|||
|
// Last Modified By :
|
|||
|
// Last Modified On :
|
|||
|
// ***********************************************************************
|
|||
|
// <copyright file= "Bullet_chaarrow_multi" company="Kimch"></copyright>
|
|||
|
// <summary></summary>
|
|||
|
// ***********************************************************************
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace G
|
|||
|
{
|
|||
|
public class Bullet_chaarrow_multi : MonoBehaviour
|
|||
|
{
|
|||
|
private float _finishDelay;
|
|||
|
|
|||
|
private void Awake()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
private void Start()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
private void Update()
|
|||
|
{
|
|||
|
if (_finishDelay > 0.2f)
|
|||
|
{
|
|||
|
this.gameObject.SetActive(false);
|
|||
|
_finishDelay = 0f;
|
|||
|
this.transform.localScale = Vector3.one * 0.1f;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
_finishDelay += Time.deltaTime;
|
|||
|
this.transform.localScale += Vector3.one * (4f * Time.deltaTime);
|
|||
|
this.transform.position += this.transform.forward * (4f * Time.deltaTime);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|