Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     animator     = GetComponent <Animator>();
     _rigidbody   = GetComponent <Rigidbody2D>();
     _collider    = GetComponent <CapsuleCollider2D>();
     An           = GetComponentInChildren <SpriteRenderer>().gameObject;
     gamePanel    = gameManager.instance.getGamePanel().GetComponent <GamePanelManager>();
     player       = gamePanel.player;
     playerScript = player.GetComponent <Player>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     gamePanel = gameManager.instance.getGamePanel().GetComponent <GamePanelManager>();
     gameManager.instance.beBlack(1);
     BattleManager.instance.setGamePanel(gamePanel);
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     gamePanelManager = this.gameObject.GetComponentInParent <GamePanelManager>();
 }
Ejemplo n.º 4
0
 void Start()
 {
     spriteRender = GetComponent <SpriteRenderer>();
     gamePanel    = gameManager.instance.getGamePanel().GetComponent <GamePanelManager>();
     player       = gamePanel.player.GetComponent <Player>();
 }
Ejemplo n.º 5
0
 //===========================需要在场景管理器用到的方法======================
 public void setGamePanel(GamePanelManager gamePanel)
 {
     this.gamePanel = gamePanel;
     player         = gamePanel.player.GetComponent <Player>();
 }
Ejemplo n.º 6
0
 void Start()
 {
     gamePanel = gameManager.instance.getGamePanel().GetComponent <GamePanelManager>();
     gamePanel.showBattleBtn(player.gameObject);
     BattleManager.instance.setGamePanel(gamePanel);
 }
Ejemplo n.º 7
0
 void Start()
 {
     gamePanel = gameManager.instance.getGamePanel().GetComponent <GamePanelManager>();
 }