Example #1
0
 public void SetupStaticWeightBot()
 {
     type = TYPE_SIK_MAP_ENEMY.STATIC_WEIGHT_BOT;
     Debug.Log("type: " + type.ToString());
     currScale            = transform.localScale;
     currScale.x          = Random.Range(2f, 3f);
     transform.localScale = currScale;
 }
Example #2
0
 public void SetupStaticHeight()
 {
     type = TYPE_SIK_MAP_ENEMY.STATIC_HEIGHT;
     Debug.Log("type: " + type.ToString());
     currScale            = transform.localScale;
     currScale.y          = Random.Range(1.6f, 2.4f);
     transform.localScale = currScale;
 }
Example #3
0
 public void SetupDynamicWeightBot()
 {
     type = TYPE_SIK_MAP_ENEMY.DYNAMIC_WEIGHT_BOT;
     Debug.Log("type: " + type.ToString());
     srcScale    = transform.localScale;
     destScale   = srcScale;
     destScale.x = Random.Range(0.8f, 1.6f) + 0.2f * MapScreenManager.Instance.levelMap;
     currScale   = srcScale;
     isInc       = true;
     p           = 0;
 }
Example #4
0
 public void SetupMovingBasic()
 {
     type = TYPE_SIK_MAP_ENEMY.MOVING_BASIC;
     Debug.Log("type: " + type.ToString());
     currNoving     = transform.localPosition;
     leftMoving     = currNoving;
     rightMoving    = currNoving;
     leftMoving.x  -= 1.2f;
     rightMoving.x += 1.2f;
     p              = 0.5f;
     isInc          = true;
 }
Example #5
0
    public void SetupStaticWeightTop()
    {
        type = TYPE_SIK_MAP_ENEMY.STATIC_WEIGHT_TOP;
        Debug.Log("type: " + type.ToString());
        currScale            = transform.localScale;
        currScale.x          = Random.Range(2f, 3f);
        transform.localScale = currScale;
        currNoving           = transform.localPosition;
        currNoving.y        += 0.6f;

        transform.localPosition = currNoving;
    }
Example #6
0
 public void SetupBasic()
 {
     type = TYPE_SIK_MAP_ENEMY.BASIC;
 }
Example #7
0
 public void SetupTopBotAtt(bool isTop)
 {
     type = TYPE_SIK_MAP_ENEMY.BASIC;
 }