| Untitled left | D:\ValheimDev\Dumps\Latest\assembly_valheim\DisableInPlacementGhost.cs | ||
|---|---|---|---|
| . | |
using System; |
|
|
using System.Collections.Generic; |
||
|
using UnityEngine; |
||
|
|
||
|
public class DisableInPlacementGhost : MonoBehaviour |
||
|
{ |
||
|
private void Start() |
||
|
{ |
||
|
if (!Player.IsPlacementGhost(base.gameObje |
||
|
{ |
||
|
return; |
||
|
} |
||
|
foreach (Behaviour behaviour in this.m_components) |
||
|
{ |
||
|
behaviour.enabled = false; |
||
|
} |
||
|
foreach (GameObject gameObject in this.m_objects) |
||
|
{ |
||
|
gameObject.SetActive(false); |
||
|
} |
||
|
} |
||
|
|
||
|
public List<Behaviour> m_components; |
||
|
|
||
|
public List<GameObject> m_objects; |
||
|
} |
||
|
|
||