// Use this for initialization void Start() { roomController = GetComponentInParent <RoomController>(); specterData = FindObjectOfType <SpecterData>(); startTime = Time.time; roomController.roomTension += specterData.darknessTension; }
// Use this for initialization void Start() { npcControllers = FindObjectsOfType <NPCController>(); roomControllers = FindObjectsOfType <RoomController>(); specterData = FindObjectOfType <SpecterData>(); }
// Use this for initialization void Start() { floatLerpTime = 0; specData = FindObjectOfType <SpecterData>(); maxSize = specData.soundRange; transform.position = specData.transform.position; }
// Use this for initialization void Start() { playerRigidbody = GetComponent <Rigidbody2D>(); specterData = GetComponent <SpecterData>(); canMove = true; effectiveMoveSpeed = maxMoveSpeed; actionTime = -2f; }
// Use this for initialization void Start() { specterData = FindObjectOfType <SpecterData>(); doorCollider = GetComponent <BoxCollider2D>(); doorCollider.enabled = false; lerpTimer = 1; defaultXScale = doorImage.transform.localScale.x; }
void Start() { spriteRenderer = GetComponent <SpriteRenderer>(); locController = FindObjectOfType <LocationController>(); specterData = FindObjectOfType <SpecterData>(); playManager = FindObjectOfType <PlayManager>(); roomDarkness = GetComponentInChildren <RoomDarkness>(); roomDarkness.gameObject.SetActive(false); hauntedMarker.SetActive(false); }
// Use this for initialization void Start() { locationController = FindObjectOfType <LocationController>(); specterData = FindObjectOfType <SpecterData>(); spiritAnimator = GetComponent <Animator>(); spiritSpriteRenderer = GetComponent <SpriteRenderer>(); audioSource = GetComponent <AudioSource>(); finalTargetPosition = finalTarget.transform.position; currentTerror = 0; currentTension = 100f; npcSpeed = maxNPCSpeed; canMove = true; }