Example #1
0
 public void Init(GameTile tile, GameBoard board, int actorId, GameObjectFactory factory, object[] payloads)
 {
     identity           = idGen++;
     this.Tile          = tile;
     this.Board         = board;
     this.OriginFactory = factory;
     transform.SetParent(tile.transform);
     transform.localPosition = new Vector3(0, 0, 0);
     Id = actorId;
     Init0(payloads);
     InitState();
     InitStateRank();
     board.AddActor(this);
     transform.parent = board.transform;
 }