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

            EastBorder = m_eastWall.position.x;
            WestBorder = m_westWall.position.x;
        }