// Start is called before the first frame update private void Start() { pixelPhysics = PixelPhysicsManager.instance; if (!isStatic) { pixelPhysics.AddActivePixel(this); } SetPosition(new Vector2Int((int)transform.position.x, (int)transform.position.y)); pixelPhysics.SetPixel(GetPosition(), this); }
public void Awake() { instance = this; }