void Start() { CachedTransform = transform; m_currentSide = PongGame.GetFieldSide(CachedTransform.position.y); m_collider = GetComponent <BoxCollider2D>(); HalfSize = m_collider.size.x / 2; }
void Awake() { Instance = this; Session = new PongSession(); EastBorder = m_eastWall.position.x; WestBorder = m_westWall.position.x; }