void Awake()
    {
        keyCombos = GameObject.Find("KeyShortcuts").GetComponent <KeyCombos>();

        //this might be a problem since when object with this class is created somewhere we can access sprite rendere on arrows without creating arrows first
        CreateArrows();
        InitChildDragPoints();
    }
Beispiel #2
0
    public static void reset_cycle(Arg args)
    {
        string         name = args.GetString(0);
        List <KeyCode> keys;

        KeyCombos.TryParse(ref name, out keys);
        Facepunch.Input.Button button = Facepunch.Input.GetButton(name);
        if (button == null)
        {
            args.ReplyWith("Button not found");
        }
        else if (!button.Cycle)
        {
            args.ReplyWith("Button does not have a cycled bind");
        }
        else
        {
            button.CycleIndex = 0;
        }
    }
Beispiel #3
0
    //***

    void Awake()
    {
        ball      = GameObject.Find("ball").gameObject;
        cam       = GameObject.Find("Main Camera").gameObject;
        keyCombos = GameObject.Find("KeyShortcuts").gameObject.GetComponent <KeyCombos>();
    }