예제 #1
0
파일: Shot.cs 프로젝트: Hornster/GKProjo
		public Shot(AbstractProjectileLauncher2D cannon)
		{
			_cannon = cannon;
		}
예제 #2
0
 private void Start()
 {
     _player    = GameObject.FindGameObjectWithTag("Player");
     _cannon    = GetComponentInChildren <AbstractProjectileLauncher2D>();
     _direction = (_cannon.transform.position - transform.position).normalized;
 }