private void Awake() { if (Instance != this) { Destroy(gameObject); } playerRaycast = FindObjectOfType <PlayerRaycast>(); messagePopUp = FindObjectOfType <MessagePopUp>(); }
//public List<float private void Start() { if (GameObject.Find("CraftTable").GetComponent <CraftTable_Mgr>().CreateMode == false) { mousepoint = Camera.main.GetComponent <Mousepoint>(); } else { mousepoint = GameObject.Find("CreateCamera").GetComponent <Camera>().GetComponent <Mousepoint>(); } try { playerRaycast = GameObject.FindWithTag("Player").GetComponent <PlayerRaycast>(); } catch { playerRaycast = null; } Firstmake = false; Manager = gameObject.GetComponentInParent <LineManager>(); }
public void SetRaycast(PlayerRaycast raycast) { this.raycast = raycast; }
// Start is called before the first frame update void Start() { playerRaycastScript = GameObject.Find("Player").GetComponent <PlayerRaycast>(); }
// Use this for initialization void Start() { driver = GetComponent <PlayerDriver>(); pRaycast = GetComponent <PlayerRaycast>(); }
private void Awake() { playerInput = GetComponent <PlayerInput>(); playerRaycast = GetComponent <PlayerRaycast>(); }