GlobalGameJam-2021/Assets/Scripts/SubPlayerScritp.cs
2021-01-30 13:51:35 +01:00

34 lines
550 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SubPlayerScritp : MonoBehaviour
{
private PlayerManager playerManager;
void Start()
{
playerManager = GetComponentInParent<PlayerManager>();
}
void Update()
{
}
public void StartEatPowerCube()
{
playerManager.StartEatPowerCube();
}
public void EndEatPowerCube()
{
playerManager.EndEatPowerCube();
}
public void Die()
{
playerManager.Die();
}
}