void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
Exemple #2
0
 void Start()
 {
     m_animation       = GetComponent <Animator>();
     m_PlayerRigidBody = m_Player.GetComponent <Rigidbody>();
     m_ObstacleInstantiatorScriptScript = m_ObstacleManager.GetComponent <ObstacleInstantiator>();
 }