GlobalGameJam-2021/Assets/Scripts/SubPlayerScritp.cs

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();
}
}