Пример #1
0
        // 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);
        }
Пример #2
0
 public void Awake()
 {
     instance = this;
 }