public ThrowTarget(int throwRange, int blastAreaOfEffect, int shrapnelAreaOfEffect) { _mouseHoverTile = GameObject.Find("GameManager").GetComponent <MouseHoverTile>(); _playerControls = GameObject.Find("GameManager").GetComponent <PlayerControls>(); _throwRange = throwRange; _blastAreaOfEffect = blastAreaOfEffect; _shrapnelAreaOfEffect = shrapnelAreaOfEffect; }
private void Awake() { All.Add(this); _mainCamera = Camera.main; _mouseHoverTile = FindObjectOfType <MouseHoverTile>(); _gameManager = FindObjectOfType <GameManager>(); _mouseHoverTile.OnHoverTileChanged += CheckForTransparency; _meshRenderer = GetComponentInChildren <MeshRenderer>(); if (lifeSpan > 0) { _gameManager.OnNewRound += ReduceLifeSpan; } }
public ConeTarget() { _mouseHoverTile = GameObject.Find("GameManager").GetComponent <MouseHoverTile>(); _playerControls = GameObject.Find("GameManager").GetComponent <PlayerControls>(); }
public void Awake() { _mouseHoverTile = GameObject.Find("GameManager").GetComponent <MouseHoverTile>(); _allCoverIcons = new List <GameObject>(); }