// Use this for initialization void Start() { timeScale = Utils.getTimeScale(); timeScale.addListener(gameObject); originPoint = transform.position; scytheAttack = GetComponentInChildren <ScytheAttack>(); rb = GetComponent <Rigidbody>(); }
// Use this for initialization void Start() { timeScale = Utils.getTimeScale(); timeScale.addListener(this.gameObject); behaviour = GetComponentInChildren <PostProcessingBehaviour>(); if (behaviour.profile == null) { enabled = false; return; } profile = Instantiate(behaviour.profile); behaviour.profile = profile; profile.vignette.enabled = true; VignetteModel.Settings vignette = profile.vignette.settings; vignette.color = vigColor; vignette.smoothness = 1f; profile.vignette.settings = vignette; }