Skip to content

Instantly share code, notes, and snippets.

@emakarov2
emakarov2 / Mover.cs
Created October 2, 2025 12:24
Shooter.cs
using UnityEngine;
public class Mover : MonoBehaviour
{
[SerializeField] private Transform[] _wayPoints;
[SerializeField] private float _speed = 0;
private int _pointIndex = 0;
using UnityEngine;
public class Mover : MonoBehaviour
{
[SerializeField] private Transform[] Places;
private float _speed;
private int _numberOfPlace = 0;
using UnityEngine;
public class GoPlaces : MonoBehaviour
{
private float _speed;
private int _numberOfPlace;
public Transform AllPlaces;
Transform[] Places;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMoverment : MonoBehaviour
{
private const string Horizontal = nameof(Horizontal);
private const string Vertical = nameof(Vertical);
[SerializeField] private float _rotateSpeed;
using UnityEngine;
[RequireComponent(typeof(Rigidbody))]
public class ChestOpener : MonoBehaviour
{
}
using UnityEngine;
public class ChestOpenTrigger : MonoBehaviour
{
[SerializeField] private Chest _chest;
private bool _isOpened = false;
private bool _hasOpener;
private void OnTriggerEnter(Collider other)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Chest : MonoBehaviour
{
private readonly int OpenTrigger = Animator.StringToHash("Open");
[SerializeField] private Animator _animator;