Esempio n. 1
0
    void Start()
    {
        DVector2 vec      = new DVector2((DReal)transform.position.z, (DReal)transform.position.x);
        DReal    rotation = DReal.Radians((DReal)transform.rotation.eulerAngles.y);

        /*Entity ent =*/ ComSat.Spawn(entityName, team, vec, rotation);
        //if(ent == null) return;
        //if(action == Action.MOVE) {
        //        ComSat.IssueMove(ent, new DVector2((DReal)point.x, (DReal)point.y));
        //}

        if (team == ComSat.localTeam)
        {
            FindObjectOfType <CameraController>().LookAt(vec);
        }
    }