Example #1
0
    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>();
    }
Example #2
0
    void Start()
    {
        //DontDestroyOnLoad(gameObject);
        post = Game.MainCamera.GetComponent <PostProcessingController>();

        if (_instance == null)
        {
            _instance = this;
        }
    }
Example #3
0
    // 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>();
    }
Example #4
0
 // Use this for initialization
 void Start()
 {
     behaviour         = GetComponent <PostProcessingBehaviour>();
     behaviour.enabled = false;
     offset            = transform.position;
     postProcessing    = GetComponent <PostProcessingController>();
     if (postProcessing != null)
     {
         InitializeVisuEffect();
     }
 }
Example #5
0
    // 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>();
    }
Example #6
0
 private void Start()
 {
     postProcessingController = GetComponent <PostProcessingController>();
 }
 void Awake()
 {
     controller = GetComponent <PostProcessingController>();
     perlin     = freeLook.GetRig(1).GetCinemachineComponent <CinemachineBasicMultiChannelPerlin>();
 }
Example #8
0
 // 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;
 }