Skip to content

Instantly share code, notes, and snippets.

View VETTEL512's full-sized avatar
😭
sad

KarenLopez12 VETTEL512

😭
sad
View GitHub Profile
@VETTEL512
VETTEL512 / PlayerScript.cs
Created August 24, 2021 20:50 — forked from ealbinu/PlayerScript.cs
Unity - Clase 1
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerScript : MonoBehaviour
{
private Rigidbody rb;
//Asignación de variables
void Start() {
@VETTEL512
VETTEL512 / enemigo.js
Created August 24, 2021 20:48 — forked from ealbinu/enemigo.js
Script de unity para que un enemigo persiga a a personaje. Tiene animación de reposo y de correr.
#pragma strict
// Aplicar a "enemigo" que contenga:
// Rigidbody
// Collider (de preferencia usar Capsule o Cube)
// En Rigidbody palomear los constrains de Freeze Rotation en X y en Z
var Player: Transform; //Asignar el personaje al que seguirán
var MoveSpeed:float = 4; //Establecer velocidad de persecución