// Use this for initialization void Start() { insec = GameObject.Find("Block1_Insecurity").GetComponent <BlockState>(); anx = GameObject.Find("Block2_Anxiety").GetComponent <BlockState>(); frust = GameObject.Find("Block3_Frustration").GetComponent <BlockState>(); spb = GetComponent <SpawnPreviewBehavior>(); spanim = GetComponent <Animator>(); }
// Use this for initialization void Start() { cooldown = cooldownMax; insec = GameObject.Find("Block1_Insecurity").GetComponent <BlockState>(); anx = GameObject.Find("Block2_Anxiety").GetComponent <BlockState>(); frust = GameObject.Find("Block3_Frustration").GetComponent <BlockState>(); spawnPreview = GameObject.Find("SpawnPreview"); spBehaviorScript = spawnPreview.GetComponent <SpawnPreviewBehavior>(); spPreviewRend = spawnPreview.GetComponent <Renderer>(); state = GameObject.Find("Player").GetComponent <PlayerState>(); previewHitbox = spawnPreview.GetComponent <Collider2D>(); flags = GameObject.Find("GameState").GetComponent <GameStateFlags>(); }