Esempio n. 1
0
    private int RotateCellInRandomWay()
    {
        const int rotateStep = 90;
        var       randomInt  = new Unity.Mathematics.Random((uint)_randomSeed.Next()).NextInt(4);

        return(rotateStep * randomInt);
    }
        protected override void OnCreate()
        {
            base.OnCreate();

            _random = new Unity.Mathematics.Random(12321);
            _entityCommandBufferSystem = World.GetOrCreateSystem <EndSimulationEntityCommandBufferSystem>();
        }