lockon模式:用右蘑菇头;要在edit里面接进来新增button9(右蘑菇头按下);在iuserinput里面新增bool lockon;在joystickinput里面声明以及实例化;在cameracontroller里面写一个方法(lockunlock)来控制是否lock;
public void LockUnlock()
{
print("lockunlpock");
}
增加代码:
iuser input
public bool lockon;
joystickinput:
lockon = buttonJstick.OnPressed;//
actorconctroller:
if (pi.lockon)
{
camcon.LockUnlock();
}