Ejemplo n.º 1
0
 public StateOjbect(GameObject g)
 {
     modelName = g.name;
     position = new SerialVector(g.transform.position);
     rotation = new SerialVector(g.transform.rotation);
     scale = new SerialVector(g.transform.localScale);
 }
Ejemplo n.º 2
0
    public TankInfo(Tank tank)
    {
        position        = tank.transform.position;
        heading         = tank.transform.up;
        cannonDirection = tank.cannon.transform.up;

        health = tank.health;
    }
Ejemplo n.º 3
0
 public SerialStateObject(StateObject s)
 {
     GameObject g = s.gameObject;
     instanceName = s.instanceName;
     modelName = g.name;
     position = new SerialVector(g.transform.position);
     rotation = new SerialVector(g.transform.rotation);
     scale = new SerialVector(g.transform.localScale);
     isStateChanger = s.isStateChanger;
     transitionStateId = s.transitionStateId;
     id = s.id;
 }
Ejemplo n.º 4
0
 public BulletInfo(Bullet bullet)
 {
     velocity = bullet.body.velocity;
     position = bullet.transform.position;
 }