Exemplo n.º 1
0
 public void SetGameOver(StampableSurfaceController stamp)
 {
     Debug.Log("Game over!");
     failStamp    = stamp;
     cycleRunning = false;
     npcCycle.endNpcCycle();
 }
Exemplo n.º 2
0
    void Awake()
    {
        Transform textHolder = transform.Find("TextHolder");

        if (textHolder == null)
        {
            Debug.Log("Passport has no TextHolder!");
            return;
        }

        Transform tempObj = textHolder.Find("txt_name");

        if (tempObj != null)
        {
            txtName = tempObj.GetComponent <TextMesh>();
        }
        else
        {
            Debug.Log("Passport has no txt_name!");
        }

        tempObj = textHolder.Find("txt_sex");
        if (tempObj != null)
        {
            txtSex = tempObj.GetComponent <TextMesh>();
        }
        else
        {
            Debug.Log("Passport has no txt_sex!");
        }

        tempObj = textHolder.Find("txt_nationality");
        if (tempObj != null)
        {
            txtNationality = tempObj.GetComponent <TextMesh>();
        }
        else
        {
            Debug.Log("Passport has no txt_nationality!");
        }

        tempObj = textHolder.Find("txt_dateOfBirth");
        if (tempObj != null)
        {
            txtDateOfBirth = tempObj.GetComponent <TextMesh>();
        }
        else
        {
            Debug.Log("Passport has no txt_dateOfBirth!");
        }

        tempObj = textHolder.Find("txt_id");
        if (tempObj != null)
        {
            txtID = tempObj.GetComponent <TextMesh>();
        }
        else
        {
            Debug.Log("Passport has no txt_id!");
        }

        tempObj = textHolder.Find("txt_expires");
        if (tempObj != null)
        {
            txtExpires = tempObj.GetComponent <TextMesh>();
        }
        else
        {
            Debug.Log("Passport has no txt_expires!");
        }

        tempObj = transform.Find("StampableSurface");
        if (tempObj != null)
        {
            stampable = tempObj.GetComponent <StampableSurfaceController>();
        }
        else
        {
            Debug.Log("Passport has no StampableSurface!");
        }
    }