예제 #1
0
파일: pincho.cs 프로젝트: SerTor2/LoLo
 // Use this for initialization
 void Start()
 {
     m_controller = Camera.main.GetComponent <GameController>();
     m_BPMManager = Camera.main.GetComponent <BPMmanager>();
     m_BPMManager.AddPinchoGameElement(this);
     m_controller.AddRestartGameElement(this);
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     m_animation  = GetComponent <Animation>();
     m_controller = Camera.main.GetComponent <GameController>();
     m_BPMManager = Camera.main.GetComponent <BPMmanager>();
     m_BPMManager.AddDesaparecibleElement(this);
     m_controller.AddRestartGameElement(this);
 }
예제 #3
0
 void Awake()
 {
     if (m_BPeerMInstance != null && m_BPeerMInstance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         m_BPeerMInstance = this;
     }
 }
예제 #4
0
파일: Plataform.cs 프로젝트: SerTor2/LoLo
 private void Start()
 {
     m_controller = Camera.main.GetComponent <GameController>();
     m_BPMManager = Camera.main.GetComponent <BPMmanager>();
     m_BPMManager.AddPlataformGameElement(this);
     m_controller.AddRestartGameElement(this);
     target             = transform.position;
     restartNum         = m_NumOfMove;
     restartcurrent     = m_CurrentPosition;
     restartPos         = transform.position;
     m_restartDirection = m_IniDirection;
     ChangeRotation();
 }