Beispiel #1
0
    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;
    }
Beispiel #2
0
 private void OnDestroy()
 {
     MemoryDelete();
     carCrushSkill = null;
 }
Beispiel #3
0
 private void Awake()
 {
     carCrushSkill = this;
 }