Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class GridManager : MonoBehaviour
- {
- public GameObject PopManager;
- public int aliveChance;
- public float speed;
- public bool simEnabled = true;
- public List<GameObject> gridSquares = new List<GameObject>();
- public Cell[,] cellgrid = new Cell[Screen_Width, Screen_Height];
- public Color CellAliveColorVal;
- public Color CellDeadColorVal;
- public int ScreenWidth;
- public int ScreenHeight;
- //
- //
- public float refreshRate;
- private static int Screen_Width = 64; //1024 pixels
- private static int Screen_Height = 48; //768 pixels
- void Start()
- {
- ScreenWidth = Screen_Width;
- ScreenHeight = Screen_Height;
- }
- // Update is called once per frame
- void Update()
- {
- refreshRate = speed * 0.01f;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement