Пример #1
0
 public void Cube_OnHitCube()
 {
     if (isPossible)
     {
         _spawnCubes.GetCube(gameObject, gameObject);
         _collision.OnHitCube -= Cube_OnHitCube;
     }
 }
Пример #2
0
    private void SwitchScriptsScene()
    {
        GetComponentInChildren <JumpClickController>().enabled = true;

        _spawnCubes.GetCube(_cubePrefab, _mainCube);

        enabled = false;
    }