Example #1
0
        public GroundDataList GetCreateGroundDatas(float locationY)
        {
            GroundDataList groundDataList = ReferencePool.Acquire <GroundDataList>();

            float x = Random.Range(-2f, 2f);

            groundDataList.Add(new Vector3(x, locationY, 1f), 2);

            return(groundDataList);
        }
Example #2
0
        public GroundDataList GetCreateGroundDatas(float locationY)
        {
            GroundDataList groundDataList = ReferencePool.Acquire <GroundDataList>();

            double rand = Utility.Random.GetRandomDouble();

            float x = rand > 0.5 ? m_Left : m_Right;

            groundDataList.Add(new Vector3(x, locationY, 1f), 4);

            return(groundDataList);
        }