예제 #1
0
	protected void Init(){

		player = (playerScript) FindObjectOfType(typeof(playerScript));
		//profileImage = gameObject.GetComponent<SpriteRenderer> ().sprite;
		pDist = gameObject.GetComponent<distanceCheck>();
		if (maxDist < GameManager.Instance.maxDist)
			maxDist = GameManager.Instance.maxDist;

	}
예제 #2
0
 protected void Init()
 {
     player = (playerScript)FindObjectOfType(typeof(playerScript));
     //profileImage = gameObject.GetComponent<SpriteRenderer> ().sprite;
     pDist = gameObject.GetComponent <distanceCheck>();
     if (maxDist < GameManager.Instance.maxDist)
     {
         maxDist = GameManager.Instance.maxDist;
     }
 }
예제 #3
0
	// Use this for initialization
	void Start () {
		if (maxDist < GameManager.Instance.maxDist)
			maxDist = GameManager.Instance.maxDist;
		player = (playerScript) FindObjectOfType(typeof(playerScript));
		pDist = gameObject.GetComponent<distanceCheck>();
        

		if (journal.inventory.Contain (iHoldThis)) {	
			Debug.Log ("inside");
			DestroyObject (gameObject);
		}
	}
예제 #4
0
    // Use this for initialization
    void Start()
    {
        if (maxDist < GameManager.Instance.maxDist)
        {
            maxDist = GameManager.Instance.maxDist;
        }
        player = (playerScript)FindObjectOfType(typeof(playerScript));
        pDist  = gameObject.GetComponent <distanceCheck>();


        if (journal.inventory.Contain(iHoldThis))
        {
            Debug.Log("inside");
            DestroyObject(gameObject);
        }
    }
예제 #5
0
	public void Start(){
		player = (playerScript) FindObjectOfType(typeof(playerScript));
		offset = GameManager.offset;
		pDist = gameObject.GetComponent<distanceCheck>();
	}
예제 #6
0
 public void Start()
 {
     player = (playerScript)FindObjectOfType(typeof(playerScript));
     offset = GameManager.offset;
     pDist  = gameObject.GetComponent <distanceCheck>();
 }