コード例 #1
0
ファイル: Pacman.cs プロジェクト: jrCoppi/Unity_Pacman
 public Pacman(GameObject pacmanObject, int linhaInicial, int colunaInicial)
 {
     movimentos         = new Movimentos(pacmanObject, linhaInicial, colunaInicial);
     this.linhaInicial  = linhaInicial;
     this.colunaInicial = colunaInicial;
     PacmanObject       = pacmanObject;
     PacmanObject.transform.position = movimentos.Posicao();
 }
コード例 #2
0
 public Comida(GameObject foodObject, int linha, int coluna)
 {
     movimentos      = new Movimentos(foodObject, linha, coluna);
     this.FoodObject = foodObject;
     this.FoodObject.transform.position = movimentos.Posicao();
 }
コード例 #3
0
 public Comida(GameObject foodObject)
 {
     movimentos = new Movimentos(foodObject);
     FoodObject = foodObject;
     FoodObject.transform.position = movimentos.Posicao();
 }
コード例 #4
0
 public Fantasma(GameObject ghostObject, int linha, int coluna)
 {
     movimentos       = new Movimentos(ghostObject, linha, coluna);
     this.GhostObject = ghostObject;
     this.GhostObject.transform.position = movimentos.Posicao();
 }
コード例 #5
0
 public Fantasma(GameObject ghostObject)
 {
     movimentos       = new Movimentos(ghostObject);
     this.GhostObject = ghostObject;
     this.GhostObject.transform.position = movimentos.Posicao();
 }