void Awake() { _rayProvider = GetComponent <IRayProvider>(); _fireInput = GetComponent <IFireInput>(); _mouseLook = GetComponent <IMouseLook>(); _movement = GetComponent <IMovement>(); }
private void Start() { IFireInput = GetComponent <IFireInput>(); if (IFireInput == null) { Debug.LogError("Fire is null"); } ILaser = GetComponent <ILaser>(); if (ILaser == null) { Debug.Log("Laser Instantiation is null"); } }