void Start() { inventory = Inventory.instance; int numSlots = System.Enum.GetNames(typeof(EquipmentSlot)).Length; currentEquipment = new Equipment[numSlots]; player = GameObject.Find("Player"); playerStats = player.GetComponent <PlayerStats>(); postProcessingController = player.GetComponent <PostProcessingController>(); }
void Start() { //DontDestroyOnLoad(gameObject); post = Game.MainCamera.GetComponent <PostProcessingController>(); if (_instance == null) { _instance = this; } }
// Use this for initialization void Start() { MainMenu_RotateCamera(); MainMenu_Circling_Spheres(); MainMenu_PlayerModel_Hover(); PPController = Camera.main.GetComponent <PostProcessingController>(); MainCameraBasePosition = Camera.main.transform.position; MainCameraBaseRotation = Camera.main.transform.localEulerAngles; SoundMng = GameObject.Find("_SoundManager").GetComponent <SoundManager>(); }
// Use this for initialization void Start() { behaviour = GetComponent <PostProcessingBehaviour>(); behaviour.enabled = false; offset = transform.position; postProcessing = GetComponent <PostProcessingController>(); if (postProcessing != null) { InitializeVisuEffect(); } }
// Use this for initialization public PowerUp() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>(); bulletPool = GameObject.FindGameObjectWithTag("BulletPool").GetComponent <BulletPoolController>(); cam = Camera.main; type = "Empty"; activationTime = 5f; baseActivationTime = activationTime; isActivated = false; isHidden = true; baseDamage = bulletPool.getBulletDamage(); damageMultiplier = 4f; slowTimeScale = 0.5f; postProcessor = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <PostProcessingController>(); }
private void Start() { postProcessingController = GetComponent <PostProcessingController>(); }
void Awake() { controller = GetComponent <PostProcessingController>(); perlin = freeLook.GetRig(1).GetCinemachineComponent <CinemachineBasicMultiChannelPerlin>(); }
// Start is called before the first frame update void Awake() { _player = Object.FindObjectOfType <CharacterController>(); _inUse = false; _ppc = Object.FindObjectOfType <PostProcessingController>(); }
// Use this for initialization void Start() { myAudioSource = GetComponent <AudioSource>(); myController = GetComponent <PostProcessingController>(); startPosition = transform.localPosition; }