>>24562968>>24563066Well, I wrote a bunch of fake code because it seemed fun anyways.
using Chuubanite.Collections;
using Chuubanite.Collections.Generic;
using World.Engine;
public class FlashRockProcedure : MonoBehaviour
{
public rockBody pigeonBody;
public float rockRadar;
bool RockLoaded;
//start means after initialization
void start
{
RockLoaded =true;
}
void Update()
{
enemy.closeby = Input.rockRadar*10meters*2seconds;
}
public void FlashRock()
{
if (RockLoaded == true)
{
rockObject decimateEnergy = instantiate(loadedEnergy, transform.position, transform.rotation);
}
}
if (enemy.closeBy)
{
FlashRock();
}
}