private void AddGrabable(GameObject g) { if(g.IsInactiveGrabable() == false) { Debug.LogError("tried to add non grabable gameobject"); Debug.DebugBreak(); } getArmsStateOnce.doOnce(() => { state = gameObject.GetComponent<ArmsState>(); }); state.grabables.Add(g); }
void Start() { if(armsState == null) { armsState = transform.parent.GetComponent(typeof(ArmsState)) as ArmsState; } }