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; }
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; }
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; }
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; }
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; }
public void SetupBasic() { type = TYPE_SIK_MAP_ENEMY.BASIC; }
public void SetupTopBotAtt(bool isTop) { type = TYPE_SIK_MAP_ENEMY.BASIC; }