浏览代码

[Bot] Automated dotnet-format update

/main
uChema 4 年前
当前提交
47ad6cc8
共有 3 个文件被更改,包括 14 次插入14 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Characters/Critter.cs
  2. 22
      UOP1_Project/Assets/Scripts/Dialogues/DialogueDataSO.cs
  3. 4
      UOP1_Project/Assets/Scripts/Inventory/CollectibleItem.cs

2
UOP1_Project/Assets/Scripts/Characters/Critter.cs


gameObject.transform.position + _collectibleItemPrefab.transform.localPosition +
2 * (randPosForward * Vector3.forward + randPosRight * Vector3.right),
gameObject.transform.localRotation);
collectibleItem.GetComponent<CollectibleItem>().SetItem( item);
collectibleItem.GetComponent<CollectibleItem>().SetItem(item);
}
// Remove Critter from the game

22
UOP1_Project/Assets/Scripts/Dialogues/DialogueDataSO.cs


// Each line would also have an event associated, or another Dialogue
private void OnEnable()
{
SetDialogueLines();
SetDialogueLines();
}
void SetDialogueLines()
{

int index = 0;
LocalizedString _dialogueLine = null;
do
{
index++;
{
index++;
{
{
}
else
{
}
else
{
} while (_dialogueLine != null );
} while (_dialogueLine != null);
}
}
}

4
UOP1_Project/Assets/Scripts/Inventory/CollectibleItem.cs


[SerializeField] private SpriteRenderer[] _itemImages = default;
private void Start()
{
if(_itemImages!=null)
if (_itemImages != null)
SetCubeItem();
}

}
public void SetItem(Item item)
{
_currentItem = item;
_currentItem = item;
}
//this function is only for testing

正在加载...
取消
保存