Example #1
0
    void Start()
    {
        segments = new List <Segment>(GetComponentsInChildren <Segment>());
        Object.FindObjectOfType <InputManager>().RegisterForRightClicks(gameObject);
        honeyBar    = Object.FindObjectOfType <HoneyBar>();
        followMouse = Object.FindObjectOfType <FollowMouse>();

        foreach (var slidable in GetComponentsInChildren <Slidable>())
        {
            slidable.enabled = false;
        }
        foreach (var rotatable in GetComponentsInChildren <Rotatable>())
        {
            rotatable.enabled = false;
        }
    }
Example #2
0
 void Start()
 {
     honeyBar      = Object.FindObjectOfType <HoneyBar>();
     borderFlasher = Object.FindObjectOfType <BorderFlasher>();
 }