Schmup-JIN/Assets/Scripts/RightLeftAI.cs
trotFunky a571cf1d4b Added ennemy
Added new textures
Fixed collision issues (Not having a RigidBody ...)
2019-09-19 15:55:09 +02:00

20 lines
401 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RightLeftAI : MonoBehaviour
{
private AbstractCharacter _character;
void Start()
{
_character = GetComponentInParent<AbstractCharacter>();
_character.Move(Vector2.left);
}
// Update is called once per frame
void Update()
{
_character.Shoot();
}
}