void CarDropSkill() { carCount++; if (carCount >= 3) { CarCrushSkill.call().Reload(carCount % 3); } Transform carDrop; carDrop = CarCrushSkill.call().GetObject("CarCrush").transform; carDrop.gameObject.SetActive(true); carDrop.position = playerTransform.position + playerTransform.forward * 3 + playerTransform.up * 5; }
private void OnDestroy() { MemoryDelete(); carCrushSkill = null; }
private void Awake() { carCrushSkill = this; }