start work on implementing gameplay
This commit is contained in:
parent
94f5a5e209
commit
274af1e5a1
42 changed files with 3054 additions and 371 deletions
17
Assets/Scripts/ReisenShoot.cs
Normal file
17
Assets/Scripts/ReisenShoot.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using Core.Extensions;
|
||||
using UnityEngine;
|
||||
|
||||
public class ReisenShoot : Ability
|
||||
{
|
||||
[SerializeField] private Projectile projectile;
|
||||
[SerializeField] private Camera cam;
|
||||
protected override void AbilityEffects()
|
||||
{
|
||||
direction = cam.ScreenToWorldPoint(Input.mousePosition);
|
||||
Projectile newProjectile = Instantiate(projectile, origin.position, Quaternion.identity);
|
||||
newProjectile.transform.Lookat2D(direction);
|
||||
newProjectile.damage = power;
|
||||
newProjectile.tag = tag;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue