using UnityEngine;
using System.Collections;
using Framework.Entities;
using Framework.Extensions;
using System.Linq;
using System.Collections.Generic;
using Framework.InteractionSystem;
using Project.Player;

namespace Project.Actors
{
    public class ActorClassifier : CoreBehaviour
    {
        public int teamNumber;
        private Vector3 startPosition;

        // Use this for initialization
        protected override void InnerAwake()
        {
            ActionMediatorLocator.Get().Subscribe<PlayerDeathHandler.ResetLevelAction>(this);
            AddActionHandler<PlayerDeathHandler.ResetLevelAction>(Reset);
            this.startPosition = this.transform.position;
        }

        // Update is called once per frame
        protected override void InnerUpdate()
        {

        }
            
        private void Reset(PlayerDeathHandler.ResetLevelAction action)
        {
            //this.transform.position = this.startPosition;
            //Rigidbody rigidbody = GetComponent<Rigidbody>();
            //if (rigidbody != null)
            //{
            //    rigidbody.velocity = Vector3.zero;
            //}
        }
    }
}