Esempio n. 1
0
        private void Spawn()
        {
            PlatformBase currentPlatform = platformPool.GetInctance();

            currentPlatform.DisablePlatform();
            currentPlatform.transform.position = Vector3.forward * currentPlatformPos.z;
            currentPlatformPos.z += platformData.PlatformLenght;
            currentPlatform.EnablePlatform();
            platformPool.SetInstance(currentPlatform);
        }