Answer the question
In order to leave comments, you need to log in
\MoveState.cs(12,115): error CS1729: 'State' does not contain a constructor that takes 3 arguments?
Please tell me how to fix my error CS1729 in the code.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MoveState : State
{
protected D_MoveState stateData;
protected bool isDetectingWall;
protected bool isDetectingLedge;
public MoveState(Entity etity, FiniteStateMachine stateMachine, string animBoolName, D_MoveState stateData) : base(etity, stateMachine, animBoolName)
{
this.stateData = stateData;
}
public override void Enter()
{
base.Enter();
entity.SetVelocity(stateData.movementSpeed);
isDetectingLedge = entity.CheckLedge();
isDetectingWall = entity.CheckWall();
}
public override void Exit()
{
base.Exit();
}
public override void LogicUpdate()
{
base.LogicUpdate();
}
public override void PhysicsUpdate()
{
base.PhysicsUpdate();
isDetectingLedge = entity.CheckLedge();
isDetectingWall = entity.CheckWall();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question