Beispiel #1
0
        private void Start()
        {
            m_gameScreenM = GameScreenManager.GetInstance();
            m_hudM        = HudManager.GetInstance();

            offset             = new Vector3(offset.x, offset.y, -Mathf.Abs(zoomMax) / 2);
            transform.position = ship.position;
        }
Beispiel #2
0
        public Vector3 centerOfMass = new Vector3(0f, -7.3f, 27f); // TO DO

        void Start()
        {
            //resM = ResourceManager.GetInstance();
            //CenterOfMassObject = Instantiate(resM.GetPrefab("CenterOfMass")).transform; // TO DO
            //CenterOfMassObject.position = centerOfMass; // TO DO
            m_Rigidbody.centerOfMass = centerOfMass; // TO DO

            hudM = HudManager.GetInstance();
        }
Beispiel #3
0
 // HudManager инициализируется в Awake. Поключаться ко всем менеджерам нужно в Start.
 private void Start()
 {
     m_hudM   = HudManager.GetInstance();
     m_GameSM = GameScreenManager.GetInstance();
 }