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; }
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; } }
// 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); } }
// 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); } }
public void Start(){ player = (playerScript) FindObjectOfType(typeof(playerScript)); offset = GameManager.offset; pDist = gameObject.GetComponent<distanceCheck>(); }
public void Start() { player = (playerScript)FindObjectOfType(typeof(playerScript)); offset = GameManager.offset; pDist = gameObject.GetComponent <distanceCheck>(); }