// Start is called before the first frame update void Start() { punches = new Pool(amount, prefab, transform.position, punchParent.transform); PunchBehaviour.ReturnGO = ReturnToPool; nextLauched = punches.GetActor().GetComponent <PunchBehaviour>(); canLaunch = true; launchTime = launchTimeMax; }
void Awake() { Instance = this; }
void UpdateNextLaunched() { canLaunch = true; nextLauched = punches.GetActor().GetComponent <PunchBehaviour>(); }