Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     UpdateDisplay(INITIAL_DRAWING_POWER);
     meterSprite = GetComponent <SpriteRenderer>();
     shaker      = GetComponent <Shaker>();
     shaker.RegisterObject(transform.parent.position);
     shaker.CustomShakeDuration = 0.01f;
 }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        current_amount = 0f;
        powerup_ui     = GameObject.FindObjectOfType <PowerUpUI>();
        UpdateDisplay();

        grid_highlighter = transform.parent.GetComponentInChildren <GridHighlighter>();
        grid             = grid_highlighter.GetComponent <SpriteRenderer>();

        shaker = GetComponent <Shaker>();
        shaker.RegisterObject(transform.parent.position);
    }